Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tjclawson-stripe committed Feb 19, 2025
1 parent cda229e commit e9c75ef
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ import com.stripe.android.paymentsheet.PaymentSheet.Appearance.Embedded
import com.stripe.android.paymentsheet.PaymentSheetFixtures
import com.stripe.android.paymentsheet.model.PaymentSelection
import com.stripe.android.paymentsheet.model.paymentMethodType
import com.stripe.android.paymentsheet.parseAppearance
import com.stripe.android.paymentsheet.state.CustomerState
import com.stripe.android.paymentsheet.state.PaymentElementLoader
import com.stripe.android.ui.core.cbc.CardBrandChoiceEligibility
import com.stripe.android.uicore.StripeTheme
import com.stripe.android.uicore.StripeThemeDefaults
import com.stripe.android.utils.screenshots.PaymentSheetAppearance
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.async
Expand Down Expand Up @@ -191,6 +193,12 @@ internal class DefaultEmbeddedConfigurationCoordinatorTest {
)
).build()
configurationHandler.emit(Result.success(createPaymentElementLoaderState()))

assertThat(StripeTheme.colorsLightMutable.componentBorder)
.isEqualTo(
StripeThemeDefaults.colorsLight.componentBorder
)

configurationCoordinator.configure(
intentConfiguration = PaymentSheet.IntentConfiguration(
PaymentSheet.IntentConfiguration.Mode.Payment(5000, "USD"),
Expand All @@ -205,6 +213,8 @@ internal class DefaultEmbeddedConfigurationCoordinatorTest {
)
)

// Reset appearance
PaymentSheet.Appearance().parseAppearance()
embeddedContentHelper.dataLoadedTurbine.awaitItem()
}

Expand Down

0 comments on commit e9c75ef

Please sign in to comment.