Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package org.mozilla.reference.browser.ui
import mockwebserver3.MockWebServer
import org.junit.After
import org.junit.Before
import org.junit.Ignore
import org.junit.Rule
import org.junit.Test
import org.mozilla.reference.browser.helpers.AndroidAssetDispatcher
Expand Down Expand Up @@ -61,7 +60,6 @@ class AddonsTest {
}
}

@Ignore("Failing, see: https://github.com/mozilla-mobile/reference-browser/issues/4335")
@Test
fun installAddonTest() {
val addonName = "uBlock Origin"
Expand All @@ -77,7 +75,6 @@ class AddonsTest {
}
}

@Ignore("Failing, see: https://github.com/mozilla-mobile/reference-browser/issues/4335")
@Test
fun verifyAddonElementsTest() {
val addonName = "uBlock Origin"
Expand All @@ -95,7 +92,6 @@ class AddonsTest {
}
}

@Ignore("Failing, see: https://github.com/mozilla-mobile/reference-browser/issues/4335")
@Test
fun removeAddonTest() {
val addonName = "uBlock Origin"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,14 @@ class AddonsManagerRobot {
}

private fun allowInstallAddonButton() {
assertTrue(mDevice.findObject(UiSelector().text("Add")).waitForExists(waitingTime))

onView(
allOf(
withId(addonsR.id.allow_button),
withText(addonsR.string.mozac_feature_addons_permissions_dialog_add),
),
).check(matches(isCompletelyDisplayed()))
.perform(click())
// The permissions dialog disables the "Add" button for ~1s as
// clickjacking protection. Wait until it becomes enabled.
val allowButton = mDevice.wait(
Until.findObject(By.res("$packageName:id/allow_button").enabled(true)),
waitingTime,
)
assertTrue("Allow button did not become enabled", allowButton != null)
allowButton.click()
}

private fun assertAddonDownloadCompletedPrompt(addonName: String) {
Expand Down