-
Notifications
You must be signed in to change notification settings - Fork 4
Add local maestro runner - Run cart control-link on kotlin/swift #558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
kieran-osgood-shopify
merged 1 commit into
main
from
kieran-osgood/e2e-cart-from-control-link
Aug 14, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ tests_path: tests | |
| tags: | ||
| include: | ||
| - launch | ||
| - cart | ||
| exclude: | ||
| - flaky | ||
| - wip | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,33 @@ | ||
| appId: ${E2E_APP_ID} | ||
| --- | ||
| - launchApp: | ||
| clearState: true | ||
| arguments: | ||
| # iOS-only launch arguments; Android ignores them. | ||
| AppleLocale: en_US | ||
| AppleLanguages: "(en)" | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: ${E2E_READY_MARKER} | ||
| timeout: 10000 | ||
| # Reset app data before testing the deep-link cold-start path. The app is | ||
| # stopped so openLink is the launch that seeds the cart. | ||
| - stopApp | ||
| - openLink: "${E2E_CONTROL_LINK}/cart?productIndex=0&quantity=1&buyerIdentityMode=${BUYER_IDENTITY_MODE}" | ||
| - waitForAnimationToEnd | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: cart-checkout-ready | ||
| timeout: 10000 | ||
| - runFlow: launch.yaml | ||
| # The wait above can match a view hierarchy the dying process left behind, which sends the | ||
| # link seconds before the new activity exists. Android then drops it, because a deep link | ||
| # has no delivery guarantee. One repeat covers that, and the command is safe to repeat: | ||
| # every cart command resets the cart before it seeds one. | ||
| - retry: | ||
| maxRetries: 1 | ||
| commands: | ||
| # The link goes to the running app. launchApp cleared the state above, so the cart is | ||
| # already empty, and a running app is what the account journey needs later: iOS delivers | ||
| # a cold-start URL through the scene connect options and Android through the launch | ||
| # intent, so a stopped app would need a second entry point on every platform. | ||
| # Each test supplies E2E_CART_PARAMS, so tests that do not care about buyer | ||
| # identity leave the app's configured mode alone. | ||
| - openLink: "${E2E_CONTROL_LINK}/cart?${E2E_CART_PARAMS}" | ||
| - waitForAnimationToEnd | ||
| # iOS asks the user to confirm before it hands a custom scheme to an app. Android | ||
| # does not, so the tap is conditional rather than platform-gated. | ||
| - runFlow: | ||
| when: | ||
| visible: "Open" | ||
| commands: | ||
| - tapOn: "Open" | ||
| - waitForAnimationToEnd | ||
| # The cart marker only appears after the controller resolved a variant, created a | ||
| # cart, added the line, and navigated. Reaching it proves the whole command path. | ||
| # That is two network round trips, so the timeout covers a slow device on a slow shop. | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: cart-checkout-ready | ||
| timeout: 60000 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| appId: ${E2E_APP_ID} | ||
| --- | ||
| # Clearing state is the default. Set CLEAR_STATE to "false" only when a test needs to | ||
| # preserve state from an earlier launch. | ||
| - runFlow: | ||
| when: | ||
| true: ${typeof CLEAR_STATE === 'undefined' || CLEAR_STATE != 'false'} | ||
| commands: | ||
| - launchApp: | ||
| clearState: true | ||
| arguments: | ||
| # iOS-only launch arguments; Android ignores them. | ||
| AppleLocale: en_US | ||
| AppleLanguages: "(en)" | ||
| - runFlow: | ||
| when: | ||
| true: ${typeof CLEAR_STATE !== 'undefined' && CLEAR_STATE == 'false'} | ||
| commands: | ||
| - launchApp: | ||
| arguments: | ||
| AppleLocale: en_US | ||
| AppleLanguages: "(en)" | ||
| # Avoid relaunching healthy apps. BrowserStack can report the state-clearing reinstall and | ||
| # launch as complete while iOS remains on SpringBoard, so probe briefly before recovering. | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: ${E2E_READY_MARKER} | ||
| timeout: 10000 | ||
| optional: true | ||
| - runFlow: | ||
| when: | ||
| notVisible: | ||
| id: ${E2E_READY_MARKER} | ||
| commands: | ||
| - retry: | ||
| maxRetries: 1 | ||
| commands: | ||
| - launchApp: | ||
| arguments: | ||
| AppleLocale: en_US | ||
| AppleLanguages: "(en)" | ||
| - extendedWaitUntil: | ||
| visible: | ||
| id: ${E2E_READY_MARKER} | ||
| timeout: 60000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.