Skip to content

Bug 2073095 - fix a few more top site tests to support running ui tests on nightly. - #372

Closed
pollym wants to merge 1 commit into
mozilla-firefox:autolandfrom
pollym:fix-ui-tests-for-nightly
Closed

pollym wants to merge 1 commit into
mozilla-firefox:autolandfrom
pollym:fix-ui-tests-for-nightly

Conversation

@pollym

@pollym pollym commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor
  • SettingsAddonTests noCrashWithAddonInstalledTest(): this now just opens the first available top site tab, as this is not really the main point of the test. I've added a new method into HomeScreenRobot to support this.

  • HomeScreenTest: the bit where it is actually checking that default top sites are available uses the new method i added to say whether or not we expect them to be there (isDefaultPinnedShortcutsOnHomepage)

  • UnsubmittedCrashDialogTest: this was mocking the context but didn't actually use it, so i could just get rid of that part 🎉

try is running here


Lando: link
Bugzilla: bug 2073095

⚠️ This pull request has 3 warnings.
🚫 This pull request has 1 blocker.

@lando-web
lando-web Bot requested a review from a team September 29, 2026 15:33
@github-actions

Copy link
Copy Markdown
Contributor

View this pull request in Lando to land it once approved.

@segunfamisa segunfamisa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this patch!

import org.mozilla.fenix.helpers.perf.DetectMemoryLeaksRule
import org.mozilla.fenix.ui.robots.homeScreen
import org.mozilla.fenix.ui.robots.navigationToolbar
import androidx.compose.ui.test.junit4.v2.AndroidComposeTestRule as AndroidComposeTestRuleV2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh TIL - I didn't know there was already a V2 😁

@segunfamisa

Copy link
Copy Markdown
Contributor

I'm not sure how the PR title gets resolved in the final commit message, but we may want to consider adding some specificity to the title - maybe something like "Bug 2073095 - Fix more tests that interact with top sites that are broken on nightly build variants" or "Bug 2073095 - Fix tests broken on nightly variant - top sites" or something like that :D

@pollym pollym changed the title Bug 2073095 - fix a few more tests to support nightly. Bug 2073095 - fix a few more top site tests to support running ui tests on nightly. Oct 1, 2026
…ts on nightly.

- SettingsAddonTests noCrashWithAddonInstalledTest(): this now just opens the first available top site tab, as this is not really the main point of the test. I've added a new method into HomeScreenRobot to support this.

- HomeScreenTest: the bit where it is actually checking that default top sites are available uses the new method i added to say whether or not we expect them to be there (isDefaultPinnedShortcutsOnHomepage)

- UnsubmittedCrashDialogTest: this was mocking the context but didn't actually use it, so i could just get rid of that part 🎉
@pollym
pollym force-pushed the fix-ui-tests-for-nightly branch from 5da29fa to 44de1aa Compare October 1, 2026 09:13
@lando-web
lando-web Bot requested a review from a team October 1, 2026 09:13
@pollym

pollym commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

I'm not sure how the PR title gets resolved in the final commit message, but we may want to consider adding some specificity to the title - maybe something like "Bug 2073095 - Fix more tests that interact with top sites that are broken on nightly build variants" or "Bug 2073095 - Fix tests broken on nightly variant - top sites" or something like that :D

thanks for the review! have tweaked, and fixed the lint. (I wrote this whole patch using human fingers instead of ai, like a dinosaur, it probably shows in the language used. Nothing is load-bearing here at all 😂)

@pollym

pollym commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

new green try

lando-worker Bot pushed a commit that referenced this pull request Oct 1, 2026
…ts on nightly. r=sfamisa

- SettingsAddonTests noCrashWithAddonInstalledTest(): this now just opens the first available top site tab, as this is not really the main point of the test. I've added a new method into HomeScreenRobot to support this.

- HomeScreenTest: the bit where it is actually checking that default top sites are available uses the new method i added to say whether or not we expect them to be there (isDefaultPinnedShortcutsOnHomepage)

- UnsubmittedCrashDialogTest: this was mocking the context but didn't actually use it, so i could just get rid of that part 🎉

[try is running here](https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=98489)

Pull request: #372
@lando-worker

lando-worker Bot commented Oct 1, 2026

Copy link
Copy Markdown

Pull request closed by commit bcb6f6d

@lando-worker lando-worker Bot closed this Oct 1, 2026
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 5, 2026
…ts on nightly. r=sfamisa

- SettingsAddonTests noCrashWithAddonInstalledTest(): this now just opens the first available top site tab, as this is not really the main point of the test. I've added a new method into HomeScreenRobot to support this.

- HomeScreenTest: the bit where it is actually checking that default top sites are available uses the new method i added to say whether or not we expect them to be there (isDefaultPinnedShortcutsOnHomepage)

- UnsubmittedCrashDialogTest: this was mocking the context but didn't actually use it, so i could just get rid of that part 🎉

[try is running here](https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=98489)

Pull request: mozilla-firefox/firefox#372

UltraBlame original commit: 8416b77afecd92453829412467bd0323fe0988c7
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 5, 2026
…ts on nightly. r=sfamisa

- SettingsAddonTests noCrashWithAddonInstalledTest(): this now just opens the first available top site tab, as this is not really the main point of the test. I've added a new method into HomeScreenRobot to support this.

- HomeScreenTest: the bit where it is actually checking that default top sites are available uses the new method i added to say whether or not we expect them to be there (isDefaultPinnedShortcutsOnHomepage)

- UnsubmittedCrashDialogTest: this was mocking the context but didn't actually use it, so i could just get rid of that part 🎉

[try is running here](https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=98489)

Pull request: mozilla-firefox/firefox#372

UltraBlame original commit: 8416b77afecd92453829412467bd0323fe0988c7
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 5, 2026
…ts on nightly. r=sfamisa

- SettingsAddonTests noCrashWithAddonInstalledTest(): this now just opens the first available top site tab, as this is not really the main point of the test. I've added a new method into HomeScreenRobot to support this.

- HomeScreenTest: the bit where it is actually checking that default top sites are available uses the new method i added to say whether or not we expect them to be there (isDefaultPinnedShortcutsOnHomepage)

- UnsubmittedCrashDialogTest: this was mocking the context but didn't actually use it, so i could just get rid of that part 🎉

[try is running here](https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=98489)

Pull request: mozilla-firefox/firefox#372

UltraBlame original commit: 8416b77afecd92453829412467bd0323fe0988c7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants