diff --git a/payments-ui-core/src/main/java/com/stripe/android/ui/core/elements/SimpleDialogElementUI.kt b/payments-ui-core/src/main/java/com/stripe/android/ui/core/elements/SimpleDialogElementUI.kt index 68aa98d1356..6bb210a35bd 100644 --- a/payments-ui-core/src/main/java/com/stripe/android/ui/core/elements/SimpleDialogElementUI.kt +++ b/payments-ui-core/src/main/java/com/stripe/android/ui/core/elements/SimpleDialogElementUI.kt @@ -60,6 +60,7 @@ fun SimpleDialogElementUI( } else { Color.Unspecified }, + style = MaterialTheme.typography.body1 ) } }, @@ -70,7 +71,10 @@ fun SimpleDialogElementUI( onDismissListener() } ) { - Text(dismissText) + Text( + text = dismissText, + style = MaterialTheme.typography.body1 + ) } } ) diff --git a/paymentsheet/src/test/java/com/stripe/android/customersheet/CustomerSheetScreenshotTest.kt b/paymentsheet/src/test/java/com/stripe/android/customersheet/CustomerSheetScreenshotTest.kt index bb5501d01d5..e4179081156 100644 --- a/paymentsheet/src/test/java/com/stripe/android/customersheet/CustomerSheetScreenshotTest.kt +++ b/paymentsheet/src/test/java/com/stripe/android/customersheet/CustomerSheetScreenshotTest.kt @@ -44,6 +44,16 @@ internal class CustomerSheetScreenshotTest { .fillMaxWidth(), ) + @get:Rule + val paparazziWithEveryAppearance = PaparazziRule( + SystemAppearance.entries, + FontSize.entries, + PaymentSheetAppearance.entries, + boxModifier = Modifier + .padding(0.dp) + .fillMaxWidth(), + ) + @get:Rule val coroutineRule = CoroutineTestRule() @@ -300,7 +310,7 @@ internal class CustomerSheetScreenshotTest { @Test fun testConfirmCloseDialog() { - paparazzi.snapshot { + paparazziWithEveryAppearance.snapshot { CustomerSheetScreen( viewState = addPaymentMethodViewState.copy( paymentMethodCode = PaymentMethod.Type.USBankAccount.code, diff --git a/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,DefaultFont,CrazyAppearance].png b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,DefaultFont,CrazyAppearance].png new file mode 100644 index 00000000000..117dc672a37 Binary files /dev/null and b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,DefaultFont,CrazyAppearance].png differ diff --git a/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,DefaultFont,CustomAppearance].png b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,DefaultFont,CustomAppearance].png new file mode 100644 index 00000000000..f5c2a949f05 Binary files /dev/null and b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,DefaultFont,CustomAppearance].png differ diff --git a/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,DefaultFont,DefaultAppearance].png b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,DefaultFont,DefaultAppearance].png index 899f0d98797..5ef422200ec 100644 Binary files a/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,DefaultFont,DefaultAppearance].png and b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,DefaultFont,DefaultAppearance].png differ diff --git a/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,LargeFont,CrazyAppearance].png b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,LargeFont,CrazyAppearance].png new file mode 100644 index 00000000000..17890c44d88 Binary files /dev/null and b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,LargeFont,CrazyAppearance].png differ diff --git a/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,LargeFont,CustomAppearance].png b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,LargeFont,CustomAppearance].png new file mode 100644 index 00000000000..2ad86ecf7bd Binary files /dev/null and b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,LargeFont,CustomAppearance].png differ diff --git a/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,LargeFont,DefaultAppearance].png b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,LargeFont,DefaultAppearance].png new file mode 100644 index 00000000000..c19c9862021 Binary files /dev/null and b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[DarkTheme,LargeFont,DefaultAppearance].png differ diff --git a/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,DefaultFont,CrazyAppearance].png b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,DefaultFont,CrazyAppearance].png new file mode 100644 index 00000000000..117dc672a37 Binary files /dev/null and b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,DefaultFont,CrazyAppearance].png differ diff --git a/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,DefaultFont,CustomAppearance].png b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,DefaultFont,CustomAppearance].png new file mode 100644 index 00000000000..ec2a6b4075b Binary files /dev/null and b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,DefaultFont,CustomAppearance].png differ diff --git a/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,DefaultFont,DefaultAppearance].png b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,DefaultFont,DefaultAppearance].png index 378050db49f..132fe8cb6be 100644 Binary files a/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,DefaultFont,DefaultAppearance].png and b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,DefaultFont,DefaultAppearance].png differ diff --git a/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,LargeFont,CrazyAppearance].png b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,LargeFont,CrazyAppearance].png new file mode 100644 index 00000000000..17890c44d88 Binary files /dev/null and b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,LargeFont,CrazyAppearance].png differ diff --git a/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,LargeFont,CustomAppearance].png b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,LargeFont,CustomAppearance].png new file mode 100644 index 00000000000..15044f34df6 Binary files /dev/null and b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,LargeFont,CustomAppearance].png differ diff --git a/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,LargeFont,DefaultAppearance].png b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,LargeFont,DefaultAppearance].png new file mode 100644 index 00000000000..1ff3a25af5e Binary files /dev/null and b/paymentsheet/src/test/snapshots/images/com.stripe.android.customersheet_CustomerSheetScreenshotTest_testConfirmCloseDialog[LightTheme,LargeFont,DefaultAppearance].png differ diff --git a/paymentsheet/src/test/snapshots/images/com.stripe.android.paymentsheet.ui_EditPaymentMethodUiScreenshotTest_testRemovalConfirmationState[].png b/paymentsheet/src/test/snapshots/images/com.stripe.android.paymentsheet.ui_EditPaymentMethodUiScreenshotTest_testRemovalConfirmationState[].png index 0a05d79de3d..b94e1a77d5d 100644 Binary files a/paymentsheet/src/test/snapshots/images/com.stripe.android.paymentsheet.ui_EditPaymentMethodUiScreenshotTest_testRemovalConfirmationState[].png and b/paymentsheet/src/test/snapshots/images/com.stripe.android.paymentsheet.ui_EditPaymentMethodUiScreenshotTest_testRemovalConfirmationState[].png differ