Skip to content

Commit 638968e

Browse files
authored
Merge pull request #462 from synonymdev/test/boost
Timesheets test ids adjustments
2 parents 98e2d98 + 5281fe1 commit 638968e

File tree

5 files changed

+29
-29
lines changed

5 files changed

+29
-29
lines changed

app/src/androidTest/java/to/bitkit/ui/settings/backups/BackupIntroScreenTest.kt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ class BackupIntroScreenTest {
3030
}
3131

3232
// Assert
33-
composeTestRule.onNodeWithTag("backup_intro_screen").assertExists()
34-
composeTestRule.onNodeWithTag("backup_image").assertExists()
35-
composeTestRule.onNodeWithTag("backup_title").assertExists()
33+
composeTestRule.onNodeWithTag("BackupIntroView").assertExists()
34+
composeTestRule.onNodeWithTag("BackupIntroViewImage").assertExists()
35+
composeTestRule.onNodeWithTag("BackupIntroViewTitle").assertExists()
3636

3737
// Verify buttons
38-
composeTestRule.onNodeWithTag("buttons_row").assertExists()
39-
composeTestRule.onNodeWithTag("later_button").assertExists().performClick()
38+
composeTestRule.onNodeWithTag("BackupIntroViewButtons").assertExists()
39+
composeTestRule.onNodeWithTag("BackupIntroViewCancel").assertExists().performClick()
4040
assert(closeClicked)
4141

42-
composeTestRule.onNodeWithTag("backup_button").assertExists().performClick()
42+
composeTestRule.onNodeWithTag("BackupIntroViewContinue").assertExists().performClick()
4343
assert(confirmClicked)
4444
}
4545

@@ -85,12 +85,12 @@ class BackupIntroScreenTest {
8585
}
8686

8787
// Assert
88-
composeTestRule.onNodeWithTag("backup_intro_screen").assertExists()
89-
composeTestRule.onNodeWithTag("backup_image").assertExists()
90-
composeTestRule.onNodeWithTag("backup_title").assertExists()
91-
composeTestRule.onNodeWithTag("backup_description").assertExists()
92-
composeTestRule.onNodeWithTag("buttons_row").assertExists()
93-
composeTestRule.onNodeWithTag("later_button").assertExists()
94-
composeTestRule.onNodeWithTag("backup_button").assertExists()
88+
composeTestRule.onNodeWithTag("BackupIntroView").assertExists()
89+
composeTestRule.onNodeWithTag("BackupIntroViewImage").assertExists()
90+
composeTestRule.onNodeWithTag("BackupIntroViewTitle").assertExists()
91+
composeTestRule.onNodeWithTag("BackupIntroViewDescription").assertExists()
92+
composeTestRule.onNodeWithTag("BackupIntroViewButtons").assertExists()
93+
composeTestRule.onNodeWithTag("BackupIntroViewCancel").assertExists()
94+
composeTestRule.onNodeWithTag("BackupIntroViewContinue").assertExists()
9595
}
9696
}

app/src/main/java/to/bitkit/ui/settings/backups/BackupIntroScreen.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fun BackupIntroScreen(
4444
.fillMaxSize()
4545
.gradientBackground()
4646
.navigationBarsPadding()
47-
.testTag("backup_intro_screen")
47+
.testTag("BackupIntroView")
4848
) {
4949
SheetTopBar(stringResource(R.string.security__backup_wallet))
5050

@@ -58,14 +58,14 @@ fun BackupIntroScreen(
5858
modifier = Modifier
5959
.fillMaxWidth()
6060
.weight(1f)
61-
.testTag("backup_image")
61+
.testTag("BackupIntroViewImage")
6262
)
6363

6464
Display(
6565
text = stringResource(R.string.security__backup_title).withAccent(accentColor = Colors.Blue),
6666
color = Colors.White,
6767
modifier = Modifier
68-
.testTag("backup_title")
68+
.testTag("BackupIntroViewTitle")
6969
)
7070
Spacer(Modifier.height(8.dp))
7171
BodyM(
@@ -76,13 +76,13 @@ fun BackupIntroScreen(
7676
},
7777
color = Colors.White64,
7878
modifier = Modifier
79-
.testTag("backup_description")
79+
.testTag("BackupIntroViewDescription")
8080
)
8181
Spacer(Modifier.height(32.dp))
8282
Row(
8383
modifier = Modifier
8484
.fillMaxWidth()
85-
.testTag("buttons_row"),
85+
.testTag("BackupIntroViewButtons"),
8686
horizontalArrangement = Arrangement.spacedBy(16.dp)
8787
) {
8888
SecondaryButton(
@@ -91,7 +91,7 @@ fun BackupIntroScreen(
9191
onClick = onClose,
9292
modifier = Modifier
9393
.weight(1f)
94-
.testTag("later_button"),
94+
.testTag("BackupIntroViewCancel"),
9595
)
9696

9797
PrimaryButton(
@@ -100,7 +100,7 @@ fun BackupIntroScreen(
100100
onClick = onConfirm,
101101
modifier = Modifier
102102
.weight(1f)
103-
.testTag("backup_button"),
103+
.testTag("BackupIntroViewContinue"),
104104
)
105105
}
106106
Spacer(Modifier.height(16.dp))

app/src/main/java/to/bitkit/ui/sheets/BoostTransactionSheet.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ object BoostTransactionTestTags {
437437
const val FEE_RATE_TEXT = "fee_rate_text"
438438

439439
@Suppress("SpellCheckingInspection")
440-
const val USE_SUGGESTED_FEE_BUTTON = "RecomendedFeeButton"
440+
const val USE_SUGGESTED_FEE_BUTTON = "RecommendedFeeButton"
441441
}
442442

443443
@Preview(showSystemUi = true, name = "Default mode")

app/src/main/java/to/bitkit/ui/sheets/HighBalanceWarningSheet.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fun HighBalanceWarningSheet(
4242
.sheetHeight(isModal = true)
4343
.gradientBackground()
4444
.navigationBarsPadding()
45-
.testTag("high_balance_intro_screen")
45+
.testTag("HighBalanceSheet")
4646
) {
4747
SheetTopBar(stringResource(R.string.other__high_balance__nav_title))
4848

@@ -56,15 +56,15 @@ fun HighBalanceWarningSheet(
5656
modifier = Modifier
5757
.fillMaxWidth()
5858
.weight(1f)
59-
.testTag("high_balance_image")
59+
.testTag("HighBalanceSheetImage")
6060
)
6161

6262
Display(
6363
text = stringResource(R.string.other__high_balance__title).withAccent(accentColor = Colors.Yellow),
6464
color = Colors.White,
6565
modifier = Modifier
6666
.fillMaxWidth()
67-
.testTag("high_balance_title")
67+
.testTag("HighBalanceSheetTitle")
6868
)
6969
VerticalSpacer(8.dp)
7070
BodyM(
@@ -74,13 +74,13 @@ fun HighBalanceWarningSheet(
7474
),
7575
color = Colors.White64,
7676
modifier = Modifier
77-
.testTag("high_balance_description")
77+
.testTag("HighBalanceSheetDescription")
7878
)
7979
VerticalSpacer(32.dp)
8080
Row(
8181
modifier = Modifier
8282
.fillMaxWidth()
83-
.testTag("buttons_row"),
83+
.testTag("HighBalanceSheetButtons"),
8484
horizontalArrangement = Arrangement.spacedBy(16.dp)
8585
) {
8686
SecondaryButton(
@@ -89,7 +89,7 @@ fun HighBalanceWarningSheet(
8989
onClick = learnMoreClick,
9090
modifier = Modifier
9191
.weight(1f)
92-
.testTag("learn_more_button"),
92+
.testTag("HighBalanceSheetCancel"),
9393
)
9494

9595
PrimaryButton(
@@ -98,7 +98,7 @@ fun HighBalanceWarningSheet(
9898
onClick = understoodClick,
9999
modifier = Modifier
100100
.weight(1f)
101-
.testTag("understood_button"),
101+
.testTag("HighBalanceSheetContinue"),
102102
)
103103
}
104104
VerticalSpacer(16.dp)

docs/e2e-test-ids.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Legend:
7777
| ReceivedTransactionButton ||
7878
| RecipientInput ||
7979
| RecipientManual ||
80-
| RecomendedFeeButton ||
80+
| RecommendedFeeButton ||
8181
| Send ||
8282
| SendAmountNumberPad ||
8383
| SendSuccess ||

0 commit comments

Comments
 (0)