Skip to content

Commit 4bade96

Browse files
AndiAJajoltan@mozilla.com
authored andcommitted
Bug 2020985 - Re-enable two PB related text selection UI tests r=dpop
The UI tests were disabled when the composable toolbar and main menu were enabled. Had to make some small changes to get them work again. Both UI tests successfully passed 100x on Firebase (without the RetryRule) ✅ Differential Revision: https://phabricator.services.mozilla.com/D286005
1 parent fd67d06 commit 4bade96

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/TextSelectionTest.kt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ class TextSelectionTest : TestSetup() {
124124
}
125125

126126
// TestRail link: https://mozilla.testrail.io/index.php?/cases/view/2326831
127-
@Ignore("Disabled after enabling the composable toolbar and main menu: https://bugzilla.mozilla.org/show_bug.cgi?id=2006295")
128127
@SmokeTest
129128
@Test
130129
fun verifyPrivateSearchTextTest() {
@@ -138,8 +137,7 @@ class TextSelectionTest : TestSetup() {
138137
verifyPageContent(genericURL.content)
139138
longClickPageObject(composeTestRule, itemContainingText("content"))
140139
clickContextMenuItem("Private Search")
141-
mDevice.waitForIdle()
142-
verifyTabCounter("2")
140+
verifyTabCounter("2", isPrivateBrowsingEnabled = true)
143141
verifyUrl("content")
144142
}
145143
}
@@ -233,7 +231,6 @@ class TextSelectionTest : TestSetup() {
233231
}
234232

235233
// TestRail link: https://mozilla.testrail.io/index.php?/cases/view/2326837
236-
@Ignore("Disabled after enabling the composable toolbar and main menu: https://bugzilla.mozilla.org/show_bug.cgi?id=2006295")
237234
@Test
238235
fun verifyPrivateSearchPDFTextOptionTest() {
239236
val genericURL =
@@ -249,7 +246,7 @@ class TextSelectionTest : TestSetup() {
249246
longClickPageObject(composeTestRule, itemContainingText("Crossing"))
250247
clickContextMenuItem("Private Search")
251248
verifyUrl("Crossing")
252-
verifyTabCounter("2")
249+
verifyTabCounter("2", isPrivateBrowsingEnabled = true)
253250
}
254251
}
255252

0 commit comments

Comments
 (0)