Fix E2E happy path tests for backups.

This commit is contained in:
Alex Hart
2025-07-28 12:18:17 -03:00
committed by GitHub
parent 42ee5267c9
commit d3030e143b
4 changed files with 12 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ import android.content.ClipboardManager
import android.content.Context
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.assertIsEnabled
import androidx.compose.ui.test.assertIsNotEnabled
import androidx.compose.ui.test.assertIsSelected
import androidx.compose.ui.test.hasText
import androidx.compose.ui.test.junit4.createEmptyComposeRule
import androidx.compose.ui.test.onNodeWithTag
@@ -175,7 +175,8 @@ class MessageBackupsCheckoutActivityTest {
// Type selection screen
composeTestRule.onNodeWithText(context.getString(R.string.MessagesBackupsTypeSelectionScreen__choose_your_backup_plan)).assertIsDisplayed()
composeTestRule.onNodeWithTag("subscribe-button").assertIsNotEnabled()
composeTestRule.onNodeWithTag("message-backups-type-block-free").assertIsSelected()
composeTestRule.onNodeWithTag("subscribe-button").assertIsEnabled()
}
private fun launchCheckoutFlow(tier: MessageBackupTier? = null): ActivityScenario<MessageBackupsCheckoutActivity> {