Repository navigation
fix(electron): report why a launch failed, and launch past macOS's reopen-windows alert #2500
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 14 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
80890c6
fix(electron): end an attempt's state even when its user-data directo…
kdy1 2391d7c
fix(electron): keep a dialog handler that outlives its attempt out of…
kdy1 79f2dff
fix(electron): leave a failed launch the time to say why
kdy1 ff0eeb6
fix(electron): set up an app whose window loaded as the wait for one …
kdy1 e39955a
test(electron): end the integration window's Electron when it never o…
kdy1 f89d8ba
fix(electron): keep only a moment of a launch's time for saying why i…
kdy1 03f6df5
fix(electron): keep macOS from asking to reopen the windows of an app…
kdy1 4ed9f75
docs(electron): list app.open()'s failure when no window loads in its…
kdy1 36d79e9
fix(electron): quote the start of each stderr line a failed launch shows
kdy1 7f2ddf0
fix(electron): quote a long stderr line only up to white space
kdy1 aa55c2e
fix(electron): wait only a moment for the exit of an app a failed lau…
kdy1 2b89ed4
chore(electron): add a changeset for the launch failure fixes
kdy1 5158813
fix(electron): quote no part of a stderr line too long to quote whole
kdy1 f408967
chore(electron): say how the changeset's launch failure quotes a long…
kdy1 09b2729
docs(electron): say the app sees a bare YES after the macOS persisten…
kdy1 8bee58d
docs(electron): note that a very short launch can still end in TEST_T…
kdy1 718c294
docs(electron): say the app's argv keeps both words of the macOS pers…
kdy1 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,5 @@ | ||
| --- | ||
| '@e2e-dev/electron': patch | ||
| --- | ||
|
|
||
| A failed `app.open()` says why it failed instead of `TEST_TIMEOUT`: the launch keeps a moment of the operation's time to ask the app and end it. A launch whose window loaded just as the wait ran out still sets the app up. On macOS the engine starts the app with `-ApplePersistenceIgnoreState YES`, so an app the engine killed in an earlier test no longer stalls its next launch behind a "reopen windows?" alert. A launch failure quotes a stderr line over 500 characters by its length only, a dialog handler from one attempt never answers the next one's dialogs, and an attempt ends cleanly when its user-data directory cannot be removed. |
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.
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.