|
|
|
@ -17,6 +17,7 @@ import androidx.compose.ui.test.performClick
|
|
|
|
|
import androidx.test.espresso.Espresso.onView
|
|
|
|
|
import androidx.test.espresso.ViewInteraction
|
|
|
|
|
import androidx.test.espresso.action.ViewActions.click
|
|
|
|
|
import androidx.test.espresso.action.ViewActions.longClick
|
|
|
|
|
import androidx.test.espresso.assertion.ViewAssertions.matches
|
|
|
|
|
import androidx.test.espresso.contrib.PickerActions
|
|
|
|
|
import androidx.test.espresso.matcher.RootMatchers.isDialog
|
|
|
|
@ -40,7 +41,6 @@ import org.junit.Assert.assertTrue
|
|
|
|
|
import org.junit.Assert.fail
|
|
|
|
|
import org.mozilla.fenix.R
|
|
|
|
|
import org.mozilla.fenix.ext.components
|
|
|
|
|
import org.mozilla.fenix.helpers.Constants.LONG_CLICK_DURATION
|
|
|
|
|
import org.mozilla.fenix.helpers.Constants.RETRY_COUNT
|
|
|
|
|
import org.mozilla.fenix.helpers.Constants.TAG
|
|
|
|
|
import org.mozilla.fenix.helpers.DataGenerationHelper.getStringResource
|
|
|
|
@ -841,7 +841,7 @@ class BrowserRobot {
|
|
|
|
|
button.click()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fun longClickToolbar() = mDevice.findObject(By.res("$packageName:id/mozac_browser_toolbar_url_view")).click(LONG_CLICK_DURATION)
|
|
|
|
|
fun longClickToolbar() = onView(withId(R.id.mozac_browser_toolbar_url_view)).perform(longClick())
|
|
|
|
|
|
|
|
|
|
fun verifyDownloadPromptIsDismissed() =
|
|
|
|
|
assertUIObjectExists(
|
|
|
|
|