|
|
|
@ -6,12 +6,15 @@ package org.mozilla.fenix.ui
|
|
|
|
|
|
|
|
|
|
import androidx.test.espresso.Espresso.openActionBarOverflowOrOptionsMenu
|
|
|
|
|
import androidx.test.espresso.IdlingRegistry
|
|
|
|
|
import androidx.test.platform.app.InstrumentationRegistry
|
|
|
|
|
import androidx.test.platform.app.InstrumentationRegistry.getInstrumentation
|
|
|
|
|
import androidx.test.uiautomator.UiDevice
|
|
|
|
|
import kotlinx.coroutines.runBlocking
|
|
|
|
|
import mozilla.appservices.places.BookmarkRoot
|
|
|
|
|
import okhttp3.mockwebserver.MockWebServer
|
|
|
|
|
import org.junit.After
|
|
|
|
|
import org.junit.Before
|
|
|
|
|
import org.junit.BeforeClass
|
|
|
|
|
import org.junit.Ignore
|
|
|
|
|
import org.junit.Rule
|
|
|
|
|
import org.junit.Test
|
|
|
|
@ -54,6 +57,16 @@ class BookmarksTest {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// changing the device preference for Touch and Hold delay, to avoid long-clicks instead of a single-click
|
|
|
|
|
companion object {
|
|
|
|
|
@BeforeClass
|
|
|
|
|
@JvmStatic
|
|
|
|
|
fun setDevicePreference() {
|
|
|
|
|
val mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())
|
|
|
|
|
mDevice.executeShellCommand("settings put secure long_press_timeout 3000")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@After
|
|
|
|
|
fun tearDown() {
|
|
|
|
|
mockWebServer.shutdown()
|
|
|
|
|