Bug 2057412 - [efficiency] Add custom-tab launch capability + convert verifyCustomTabMenuItemsTest
Categories
(Firefox for Android :: UI Tests, task)
Tracking
()
| 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
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
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).
Comment 3•1 month ago
|
||
| bugherder | ||
Description
•