Skip to content

Commit

Permalink
fix test theme
Browse files Browse the repository at this point in the history
  • Loading branch information
toluo-stripe committed Nov 20, 2024
1 parent ddc604e commit 6eb9f22
Showing 1 changed file with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.stripe.android.core.model.CountryCode
import com.stripe.android.link.theme.DefaultLinkTheme
import com.stripe.android.model.CardBrand
import com.stripe.android.model.ConsumerPaymentDetails
import com.stripe.android.model.CvcCheck
Expand Down Expand Up @@ -32,14 +33,16 @@ internal class PaymentDetailsListItemScreenShotTest(
@Test
fun test() {
paparazziRule.snapshot {
PaymentDetailsListItem(
paymentDetails = testCase.state.details,
enabled = testCase.state.enabled,
isSelected = testCase.state.isSelected,
isUpdating = testCase.state.isUpdating,
onClick = {},
onMenuButtonClick = {}
)
DefaultLinkTheme {
PaymentDetailsListItem(
paymentDetails = testCase.state.details,
enabled = testCase.state.enabled,
isSelected = testCase.state.isSelected,
isUpdating = testCase.state.isUpdating,
onClick = {},
onMenuButtonClick = {}
)
}
}
}

Expand Down

0 comments on commit 6eb9f22

Please sign in to comment.