Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ class BackupIntroScreenTest {
}

// Assert
composeTestRule.onNodeWithTag("backup_intro_screen").assertExists()
composeTestRule.onNodeWithTag("backup_image").assertExists()
composeTestRule.onNodeWithTag("backup_title").assertExists()
composeTestRule.onNodeWithTag("BackupIntroView").assertExists()
composeTestRule.onNodeWithTag("BackupIntroViewImage").assertExists()
composeTestRule.onNodeWithTag("BackupIntroViewTitle").assertExists()

// Verify buttons
composeTestRule.onNodeWithTag("buttons_row").assertExists()
composeTestRule.onNodeWithTag("later_button").assertExists().performClick()
composeTestRule.onNodeWithTag("BackupIntroViewButtons").assertExists()
composeTestRule.onNodeWithTag("BackupIntroViewCancel").assertExists().performClick()
assert(closeClicked)

composeTestRule.onNodeWithTag("backup_button").assertExists().performClick()
composeTestRule.onNodeWithTag("BackupIntroViewContinue").assertExists().performClick()
assert(confirmClicked)
}

Expand Down Expand Up @@ -85,12 +85,12 @@ class BackupIntroScreenTest {
}

// Assert
composeTestRule.onNodeWithTag("backup_intro_screen").assertExists()
composeTestRule.onNodeWithTag("backup_image").assertExists()
composeTestRule.onNodeWithTag("backup_title").assertExists()
composeTestRule.onNodeWithTag("backup_description").assertExists()
composeTestRule.onNodeWithTag("buttons_row").assertExists()
composeTestRule.onNodeWithTag("later_button").assertExists()
composeTestRule.onNodeWithTag("backup_button").assertExists()
composeTestRule.onNodeWithTag("BackupIntroView").assertExists()
composeTestRule.onNodeWithTag("BackupIntroViewImage").assertExists()
composeTestRule.onNodeWithTag("BackupIntroViewTitle").assertExists()
composeTestRule.onNodeWithTag("BackupIntroViewDescription").assertExists()
composeTestRule.onNodeWithTag("BackupIntroViewButtons").assertExists()
composeTestRule.onNodeWithTag("BackupIntroViewCancel").assertExists()
composeTestRule.onNodeWithTag("BackupIntroViewContinue").assertExists()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fun BackupIntroScreen(
.fillMaxSize()
.gradientBackground()
.navigationBarsPadding()
.testTag("backup_intro_screen")
.testTag("BackupIntroView")
) {
SheetTopBar(stringResource(R.string.security__backup_wallet))

Expand All @@ -58,14 +58,14 @@ fun BackupIntroScreen(
modifier = Modifier
.fillMaxWidth()
.weight(1f)
.testTag("backup_image")
.testTag("BackupIntroViewImage")
)

Display(
text = stringResource(R.string.security__backup_title).withAccent(accentColor = Colors.Blue),
color = Colors.White,
modifier = Modifier
.testTag("backup_title")
.testTag("BackupIntroViewTitle")
)
Spacer(Modifier.height(8.dp))
BodyM(
Expand All @@ -76,13 +76,13 @@ fun BackupIntroScreen(
},
color = Colors.White64,
modifier = Modifier
.testTag("backup_description")
.testTag("BackupIntroViewDescription")
)
Spacer(Modifier.height(32.dp))
Row(
modifier = Modifier
.fillMaxWidth()
.testTag("buttons_row"),
.testTag("BackupIntroViewButtons"),
horizontalArrangement = Arrangement.spacedBy(16.dp)
) {
SecondaryButton(
Expand All @@ -91,7 +91,7 @@ fun BackupIntroScreen(
onClick = onClose,
modifier = Modifier
.weight(1f)
.testTag("later_button"),
.testTag("BackupIntroViewCancel"),
)

PrimaryButton(
Expand All @@ -100,7 +100,7 @@ fun BackupIntroScreen(
onClick = onConfirm,
modifier = Modifier
.weight(1f)
.testTag("backup_button"),
.testTag("BackupIntroViewContinue"),
)
}
Spacer(Modifier.height(16.dp))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ object BoostTransactionTestTags {
const val FEE_RATE_TEXT = "fee_rate_text"

@Suppress("SpellCheckingInspection")
const val USE_SUGGESTED_FEE_BUTTON = "RecomendedFeeButton"
const val USE_SUGGESTED_FEE_BUTTON = "RecommendedFeeButton"
}

@Preview(showSystemUi = true, name = "Default mode")
Expand Down
14 changes: 7 additions & 7 deletions app/src/main/java/to/bitkit/ui/sheets/HighBalanceWarningSheet.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fun HighBalanceWarningSheet(
.sheetHeight(isModal = true)
.gradientBackground()
.navigationBarsPadding()
.testTag("high_balance_intro_screen")
.testTag("HighBalanceSheet")
) {
SheetTopBar(stringResource(R.string.other__high_balance__nav_title))

Expand All @@ -56,15 +56,15 @@ fun HighBalanceWarningSheet(
modifier = Modifier
.fillMaxWidth()
.weight(1f)
.testTag("high_balance_image")
.testTag("HighBalanceSheetImage")
)

Display(
text = stringResource(R.string.other__high_balance__title).withAccent(accentColor = Colors.Yellow),
color = Colors.White,
modifier = Modifier
.fillMaxWidth()
.testTag("high_balance_title")
.testTag("HighBalanceSheetTitle")
)
VerticalSpacer(8.dp)
BodyM(
Expand All @@ -74,13 +74,13 @@ fun HighBalanceWarningSheet(
),
color = Colors.White64,
modifier = Modifier
.testTag("high_balance_description")
.testTag("HighBalanceSheetDescription")
)
VerticalSpacer(32.dp)
Row(
modifier = Modifier
.fillMaxWidth()
.testTag("buttons_row"),
.testTag("HighBalanceSheetButtons"),
horizontalArrangement = Arrangement.spacedBy(16.dp)
) {
SecondaryButton(
Expand All @@ -89,7 +89,7 @@ fun HighBalanceWarningSheet(
onClick = learnMoreClick,
modifier = Modifier
.weight(1f)
.testTag("learn_more_button"),
.testTag("HighBalanceSheetCancel"),
)

PrimaryButton(
Expand All @@ -98,7 +98,7 @@ fun HighBalanceWarningSheet(
onClick = understoodClick,
modifier = Modifier
.weight(1f)
.testTag("understood_button"),
.testTag("HighBalanceSheetContinue"),
)
}
VerticalSpacer(16.dp)
Expand Down
2 changes: 1 addition & 1 deletion docs/e2e-test-ids.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Legend:
| ReceivedTransactionButton | ✅ |
| RecipientInput | ✅ |
| RecipientManual | ✅ |
| RecomendedFeeButton | ✅ |
| RecommendedFeeButton | ✅ |
| Send | ✅ |
| SendAmountNumberPad | ✅ |
| SendSuccess | ✅ |
Expand Down
Loading