tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 9f658bb63622c579ebd7e1107076fb5ff3f3de76
parent 7a0649902e98d2dd441769a26c73b56c9cb5a084
Author: Mugurell <Mugurell@users.noreply.github.com>
Date:   Mon,  3 Nov 2025 10:26:14 +0000

Bug 1997567 - Improve verifying hints shown in the composable toolbar r=ajoltan

Differential Revision: https://phabricator.services.mozilla.com/D271003

Diffstat:
Mmobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SearchRobot.kt | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SearchRobot.kt b/mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SearchRobot.kt @@ -9,6 +9,7 @@ package org.mozilla.fenix.ui.robots import android.util.Log import androidx.compose.ui.test.ComposeTimeoutException import androidx.compose.ui.test.ExperimentalTestApi +import androidx.compose.ui.test.assert import androidx.compose.ui.test.assertAny import androidx.compose.ui.test.assertCountEquals import androidx.compose.ui.test.assertIsDisplayed @@ -380,10 +381,10 @@ class SearchRobot { composeTestRule: ComposeTestRule, searchHint: String, ) { Log.i(TAG, "verifySearchBarPlaceholderWithComposableToolbar: Verify hint is $searchHint") - composeTestRule.onNode( - hasTestTag(ADDRESSBAR_SEARCH_BOX) and hasText(searchHint), - useUnmergedTree = true, - ) + composeTestRule + .onNodeWithTag(ADDRESSBAR_SEARCH_BOX) + .assert(hasText(searchHint)) + .assertIsDisplayed() Log.i(TAG, "verifySearchBarPlaceholderWithComposableToolbar: Verification successful") }