Fix failing verifyAddonsCanBeUninstalled test (#13319)
parent
c93a29f89a
commit
60526dffd8
|
@ -75,7 +75,6 @@ class SettingsAddonsTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Ignore("Failing, see: https://github.com/mozilla-mobile/fenix/issues/13220")
|
|
||||||
// Opens the addons settings menu, installs an addon, then uninstalls
|
// Opens the addons settings menu, installs an addon, then uninstalls
|
||||||
@Test
|
@Test
|
||||||
fun verifyAddonsCanBeUninstalled() {
|
fun verifyAddonsCanBeUninstalled() {
|
||||||
|
|
|
@ -2,8 +2,9 @@ package org.mozilla.fenix.ui.robots
|
||||||
|
|
||||||
import androidx.test.espresso.Espresso.onView
|
import androidx.test.espresso.Espresso.onView
|
||||||
import androidx.test.espresso.assertion.ViewAssertions.matches
|
import androidx.test.espresso.assertion.ViewAssertions.matches
|
||||||
import androidx.test.espresso.matcher.ViewMatchers.isCompletelyDisplayed
|
import androidx.test.espresso.matcher.ViewMatchers
|
||||||
import androidx.test.espresso.matcher.ViewMatchers.withContentDescription
|
import androidx.test.espresso.matcher.ViewMatchers.withContentDescription
|
||||||
|
import androidx.test.espresso.matcher.ViewMatchers.withEffectiveVisibility
|
||||||
import androidx.test.espresso.matcher.ViewMatchers.withId
|
import androidx.test.espresso.matcher.ViewMatchers.withId
|
||||||
import org.hamcrest.CoreMatchers.allOf
|
import org.hamcrest.CoreMatchers.allOf
|
||||||
import org.mozilla.fenix.R
|
import org.mozilla.fenix.R
|
||||||
|
@ -35,11 +36,11 @@ class SettingsSubMenuAddonsManagerAddonDetailedMenuRobot {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun assertAddonMenuItems() {
|
private fun assertAddonMenuItems() {
|
||||||
enableSwitchButton().check(matches(isCompletelyDisplayed()))
|
enableSwitchButton().check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)))
|
||||||
settingsButton().check(matches(isCompletelyDisplayed()))
|
settingsButton().check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)))
|
||||||
detailsButton().check(matches(isCompletelyDisplayed()))
|
detailsButton().check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)))
|
||||||
permissionsButton().check(matches(isCompletelyDisplayed()))
|
permissionsButton().check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)))
|
||||||
removeAddonButton().check(matches(isCompletelyDisplayed()))
|
removeAddonButton().check(matches(withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue