Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tillh-stripe committed Sep 6, 2023
1 parent 3b61f16 commit a16367b
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import androidx.test.ext.junit.runners.AndroidJUnit4
import com.stripe.android.BaseLpmTest
import com.stripe.android.test.core.AuthorizeAction
import com.stripe.android.test.core.Currency
import com.stripe.android.test.core.IntentType
import org.junit.Test
import org.junit.runner.RunWith

Expand Down Expand Up @@ -45,6 +46,26 @@ internal class TestCashApp : BaseLpmTest() {
)
}

@Test
fun testCashAppPayWithSfu() {
testDriver.confirmNewOrGuestComplete(
testParameters = cashApp.copy(
intentType = IntentType.PayWithSetup,
authorizationAction = AuthorizeAction.AuthorizePayment,
),
)
}

@Test
fun testCashAppPayWithSetupIntent() {
testDriver.confirmNewOrGuestComplete(
testParameters = cashApp.copy(
intentType = IntentType.Setup,
authorizationAction = AuthorizeAction.AuthorizeSetup,
),
)
}

@Test
fun testCashAppPayInCustomFlow() {
testDriver.confirmCustom(
Expand Down

0 comments on commit a16367b

Please sign in to comment.