-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix disabled toggleSearchSuggestions UI test #21517
Conversation
f6e643f
to
edccbb1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment below. Can you also run this one a number of times after the change?
private fun assertSearchEngineSuggestionResults(rule: ComposeTestRule, searchResult: String) { | ||
rule.waitForIdle() | ||
|
||
mDevice.waitForAwesomeBarContent( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm surprised to see this as part of an extension and not a robot. Can you refactor this out of WaitNotNull.kt
? I don't think it makes sense to live in this extension https://github.com/mozilla-mobile/fenix/blob/main/app/src/androidTest/java/org/mozilla/fenix/helpers/ext/WaitNotNull.kt#L23 Or if you don't think it should be part of a robot it can become a generic function in https://github.com/mozilla-mobile/fenix/blob/main/app/src/androidTest/java/org/mozilla/fenix/helpers/TestHelper.kt since the function can handle other objects since it's merely waiting for them – it can be reused.
edccbb1
to
eaf820f
Compare
Hi @AaronMT moved the function to TestHelper.kt Successfully re-ran both Results
|
eaf820f
to
55a6f80
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK to me. Let's try it.
@AndiAJ Oh this needs a rebase due to your other commit. Feel free to land after. |
72b55d5
to
370458a
Compare
For #479
✔️ Successfully ran 50x on Firebase
Pull Request checklist
To download an APK when reviewing a PR: