Repository navigation
feat(config): accept an object for launch args #1903
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
Merged
Changes from 20 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
8a0bd97
feat(config): accept an object for launch args
luke-h1 57618dc
fix(mobile): type the Android extras an object spells, and take one o…
luke-h1 fd4592b
fix(mobile): refuse what a launch command would read back changed
luke-h1 d6ad30d
chore(mobile): widen the Apple argument list and drop the hand-run la…
luke-h1 8ce114c
docs(ja, zh): mirror the launch-argument code blocks
luke-h1 b271853
fix(core): let a launch-argument value be undefined, and name the bad…
luke-h1 7c9a6ac
docs: name the launch-argument object in the translated tables, and t…
luke-h1 ed90f00
fix(mobile): quote iOS launch argument values that start with a dash
luke-h1 012f20d
refactor(core): resolve launch arguments without undefined values
luke-h1 a27d861
refactor: narrow the scalar check and simplify the android list check
luke-h1 bdab01d
docs(migrate): say where Detox puts launch args on Android
luke-h1 09e4ffa
chore: trim the launch-arguments changeset to what users see
luke-h1 bc210fe
fix(mobile): raise the e2e peer floor to the first release with check…
luke-h1 4e94356
feat(desktop): spell object launch args as user defaults
luke-h1 80eb27a
test(desktop): cover the appPath launch with an object
luke-h1 d6f694f
refactor(core): share the NSUserDefaults spelling as appleUserDefaults
luke-h1 db2dac9
fix(core): quote // plist items and refuse a dashed launch argument name
luke-h1 2ce1c16
fix(core): tell the user to remove the dash from a launch argument name
luke-h1 6b43448
docs: show the list form for apps that read raw process arguments
luke-h1 7f4a2f2
fix(core): keep EngineAppInfo.launchArguments a list, send objects th…
luke-h1 5a7b87a
docs: scope the launch-argument example to Apple engines, and say ope…
luke-h1 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| 'e2e': patch | ||
| '@e2e-dev/core': patch | ||
| '@e2e-dev/mobile': patch | ||
| '@e2e-dev/desktop': patch | ||
| --- | ||
|
|
||
| `app.launchArguments` and `device.openApp({ launchArguments })` also take an object of argument name to string, number, boolean, or list of strings, such as `{ AppleLanguages: ['fr'], AppleLocale: 'fr_FR' }`. Write a name without its leading dash: `{ AppleLocale: 'fr_FR' }`, not `{ '-AppleLocale': 'fr_FR' }`, which fails at config load. On iOS, `mobile()` sends each entry as `-name value`, and so does `desktop()` on macOS. On Android, each entry is an `am start` extra of the value's type: `--es`, `--ez`, `--ei` (`--el` beyond Java's `int`), `--ef`, or `--esa` for a list. An Android object fails when it holds one of Apple's arguments, such as `AppleLocale`, or a list that `am start` would change: an empty list, or an item that is empty, holds a comma, or ends in a backslash. A list of strings still goes to the launch command as given. `EngineAppInfo.launchArguments` stays a list of strings. An engine that declares `launchArgumentValues: true` receives an object in `EngineAppInfo.launchArgumentValues`; for any other engine an object fails at config load. `@e2e-dev/core/engine` exports the types, the shape check `checkLaunchArguments`, and `appleUserDefaults`, which spells an object as `-name value` arguments for an iOS or macOS app. | ||
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
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
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
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
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.