Closed Bug 2057412 Opened 1 month ago Closed 1 month ago

Bug 2057412 - [efficiency] Add custom-tab launch capability + convert verifyCustomTabMenuItemsTest

Categories

(Firefox for Android :: UI Tests, task)

task

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: jajohnson, Assigned: jajohnson)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Custom tabs run in their own activity (CustomTabActivity), launched by an intent rather than an in-app
nav path. Adds that as a reusable harness capability:

  • CustomTabsPage.launchCustomTab(url, customMenuItem): fires createCustomTabIntent at IntentReceiverActivity
    (FLAG_ACTIVITY_NEW_TASK), waits for the custom-tab toolbar, sets page state. No NavigationRegistry edge --
    custom tabs are launch-reached (this removes the previous illegal empty-steps edge). Plus openMainMenu().
  • CustomTabsSelectors: device-level (UIAutomator) locators so they resolve across the activity switch --
    redesigned-toolbar menu button ("More options"), close button ("Return to previous app"), and main-menu items.
  • PageContext gains on.customTabs.

Converts CustomTabsTest.verifyCustomTabMenuItemsTest (TestRail 249644). Green, non-flaky.
Unlocks the rest of the custom-tab family + the custom-tab connection variants (reuse the trust-panel verifier).

Why: Adds the custom-tab launch capability (custom tabs are intent-launched, not in-app nav-reachable), unlocking the whole custom-tab family.

Context: part of the ui/efficiency UI-test modernization. This adds framework capability/enablement (page objects, selectors, navigation edges, or BasePage primitives) required to convert legacy ui/ smoke tests onto ui/efficiency. Tracked separately from strict conversion so conversion effort can be measured over time. Epic MTE-5504.

TestRail: 249644

Summary: [efficiency] Add custom-tab launch capability + convert verifyCustomTabMenuItemsTest → Bug 2057412 - [efficiency] Add custom-tab launch capability + convert verifyCustomTabMenuItemsTest
Assignee: nobody → jajohnson

Custom tabs run in their own activity (CustomTabActivity), launched by an intent rather than an in-app
nav path. Adds that as a reusable harness capability:

  • CustomTabsPage.launchCustomTab(url, customMenuItem): fires createCustomTabIntent at IntentReceiverActivity
    (FLAG_ACTIVITY_NEW_TASK), waits for the custom-tab toolbar, sets page state. No NavigationRegistry edge --
    custom tabs are launch-reached (this removes the previous illegal empty-steps edge). Plus openMainMenu().
  • CustomTabsSelectors: device-level (UIAutomator) locators so they resolve across the activity switch --
    redesigned-toolbar menu button ("More options"), close button ("Return to previous app"), and main-menu items.
  • PageContext gains on.customTabs.

Converts CustomTabsTest.verifyCustomTabMenuItemsTest (TestRail 249644). Green, non-flaky.
Unlocks the rest of the custom-tab family + the custom-tab connection variants (reuse the trust-panel verifier).

Blocks: 2030727
Pushed by jajohnson@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f2caae15afd5 https://hg.mozilla.org/integration/autoland/rev/88b299e4a39c [efficiency] Add custom-tab launch capability + convert verifyCustomTabMenuItemsTest r=aaronmt,isabel_rios
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: