Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
run #3 fix2
Browse files Browse the repository at this point in the history
  • Loading branch information
sv-ohorvath committed Jun 3, 2022
1 parent cc91fa5 commit a7d2b38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import androidx.test.espresso.ViewInteraction
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.action.ViewActions.closeSoftKeyboard
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.intent.Intents
import androidx.test.espresso.intent.matcher.IntentMatchers
import androidx.test.espresso.matcher.ViewMatchers
import androidx.test.espresso.matcher.ViewMatchers.withContentDescription
import androidx.test.espresso.matcher.ViewMatchers.withEffectiveVisibility
Expand All @@ -48,7 +50,7 @@ import org.mozilla.fenix.helpers.Constants.LONG_CLICK_DURATION
import org.mozilla.fenix.helpers.SessionLoadedIdlingResource
import org.mozilla.fenix.helpers.TestAssetHelper.waitingTime
import org.mozilla.fenix.helpers.TestAssetHelper.waitingTimeShort
import org.mozilla.fenix.helpers.TestHelper.assertNativeAppOpens
import org.mozilla.fenix.helpers.TestHelper.isPackageInstalled
import org.mozilla.fenix.helpers.TestHelper.packageName
import org.mozilla.fenix.helpers.TestHelper.waitForObjects
import org.mozilla.fenix.helpers.click
Expand Down Expand Up @@ -92,10 +94,10 @@ class SearchRobot {
// mDevice.waitNotNull(
// Until.findObject(By.pkg(PackageName.GOOGLE_QUICK_SEARCH)), waitingTime
// )
assertNativeAppOpens(Constants.PackageName.GOOGLE_QUICK_SEARCH, "")
// if (TestHelper.isPackageInstalled(Constants.PackageName.GOOGLE_QUICK_SEARCH)) {
// Intents.intended(IntentMatchers.hasAction("android.speech.action.RECOGNIZE_SPEECH"))
// }
// assertNativeAppOpens(Constants.PackageName.GOOGLE_QUICK_SEARCH, "")
if (isPackageInstalled(Constants.PackageName.GOOGLE_QUICK_SEARCH)) {
Intents.intended(IntentMatchers.hasAction("android.speech.action.RECOGNIZE_SPEECH"))
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion automation/taskcluster/androidTest/flank-x86.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ flank:
max-test-shards: -1
# num-test-runs: the amount of times to run the tests.
# 1 runs the tests once. 10 runs all the tests 10x
num-test-runs: 100
num-test-runs: 110
### Output Style flag
## Output style of execution status. May be one of [verbose, multi, single, compact].
## For runs with only one test execution the default value is 'verbose', in other cases
Expand Down

0 comments on commit a7d2b38

Please sign in to comment.