Commit Graph

116 Commits

Author SHA1 Message Date
Nathan Sobo
f8ecf929a8 Disable github package in smoke test – it takes too long to compile 2017-05-11 16:46:02 -06:00
Antonio Scandurra
1d8f4f2cdd Wait until the editor is focused before starting to type in smoke test 2017-05-05 09:29:29 +02:00
Damien Guard
438168e62c Do not use the chromedriver wrapper as it spews to stdout 2016-12-13 12:13:47 -08:00
Damien Guard
f25a718c02 Switch electron-chromedriver from GitHub download to npm install 2016-12-12 16:31:38 -08:00
Damien Guard
3fd1dbdce3
Clean up temporary files when running specs 2016-12-01 10:48:45 -08:00
Damien Guard
440e708e40
Smoke test only passes on macOS 2016-11-29 16:55:14 -08:00
Antonio Scandurra
0f6eadcfce Wait for windows' state to be saved before closing the app or any window
Previously, we used to save the window's state in the renderer process
`beforeunload` event handler: because of the synchronous nature of event
handlers and the asynchronous design of IndexedDB, this could
potentially not save anything if windows close fast enough to prevent
IndexedDB from committing the pending transaction containing the state.
(Ref.: https://mzl.la/2bXCXDn)

With this commit, we will intercept the `before-quit` events on
`electron.app` and the `close` event on `BrowserWindow` (which will fire
respectively before quitting the application and before closing a
window), and prevent them from performing the default action. We will
then ask each renderer process to save its state and, finally, close the
window and/or the app.
2016-09-07 13:03:33 +02:00
Antonio Scandurra
34978bfeda Merge branch 'master' into ns-modernize-build 2016-08-26 16:20:46 +02:00
Antonio Scandurra
5b57669859 Disable telemetry on AtomApplication tests and smoke-spec.coffee
Unless a choice has been made by the user, this tab always shows up as
the first one when opening Atom, thus breaking some of the assumptions
we make in the main process tests.
2016-08-26 15:13:37 +02:00
Nathan Sobo
7146a6bde9 Merge remote-tracking branch 'origin/master' into ns-modernize-build 2016-08-12 15:33:50 -06:00
Antonio Scandurra
428106bcaa Add smoke test to ensure Atom runs and basic operations can be performed 2016-08-12 11:46:48 +02:00
Antonio Scandurra
7fe0f6b455 Move another integration test 2016-08-12 11:29:34 +02:00
Antonio Scandurra
da7b951c07 Move another integration test 2016-08-12 11:22:32 +02:00
Antonio Scandurra
02bc4282d0 Move another integration test 2016-08-12 10:58:59 +02:00
Antonio Scandurra
e8c7b27af4 Move another integration test 2016-08-12 10:10:20 +02:00
Nathan Sobo
3d99cde9e1 Move another integration spec to the main process tests 2016-08-11 16:43:26 -06:00
Nathan Sobo
a29db76073 Move another integration test 2016-08-11 16:33:36 -06:00
Nathan Sobo
b89c0cb415 Move another integration test 2016-08-11 16:33:25 -06:00
Nathan Sobo
f953588f91 Move opening multiple directories integration spec to main process tests
It was testing something that didn’t actually work, that opening a
directory that was already open in an existing window would recycle the
window. We explicitly don’t behave that way and the old test was passing
spuriously.
2016-08-11 16:12:41 -06:00
Nathan Sobo
dbfd0cc605 Move integration test of window persistence to main process tests 2016-08-11 15:28:11 -06:00
Nathan Sobo
3a3921709f Restore env guard in integration test 2016-08-11 15:27:44 -06:00
Nathan Sobo
5f414f4ea7 Move integration specs for reusing windows to main process tests 2016-08-11 15:10:38 -06:00
Nathan Sobo
15bb92f35e Move whitespace trimming integration spec to main process tests 2016-08-11 14:43:23 -06:00
Nathan Sobo
f80c800347 Move test for opening w/ a line:column from Chromedriver to main process 2016-08-11 14:36:47 -06:00
Nathan Sobo
4d4a2530ff Move test for opening w/ a line number from Chromedriver to main process 2016-08-11 14:33:54 -06:00
Nathan Sobo
502339b830 Replace chromedriver test of window offset with main process mocha test
Signed-off-by: Antonio Scandurra <as-cii@github.com>
2016-08-11 10:33:12 -06:00
Antonio Scandurra
6bd9d1e4be Install webdriver io in script/package.json
So that we can control chromedriver without including that dependency in the final bundle.
2016-08-11 13:09:24 +02:00
Antonio Scandurra
6f9a8208db Download chromedriver and run integration tests 2016-08-11 12:40:40 +02:00
Leonard Lamprecht
3a1ad3fd40 Replace OS X and Mac OS with macOS 2016-06-18 15:33:08 +02:00
Antonio Scandurra
ad166db6c4 Don't use temp for integration tests socket creation 2016-05-17 13:56:57 +02:00
Antonio Scandurra
cd41b1a0ca Improve assertion
This allows us to test that the configuration can be changed outside of Atom.
2016-03-31 10:40:57 +02:00
Jordan Tucker
4e4c85970b add option to choose whether atom rememebers your last windows 2016-03-12 23:31:39 -08:00
Arnaud Rinquin
bb1c048e12 Add -a, --add specific integration tests 2016-02-22 18:38:25 +00:00
Max Brunsfeld
4bc969d1df Merge branch 'master' into wl-electron-35 2016-02-16 13:16:13 -08:00
Katrina Uychaco
7cfe0b659e Revert "Wait for tab to open in webdriverio waitForPaneItemCount command"
This reverts commit 8e33f8bf5b.
2016-02-11 14:50:51 -08:00
Katrina Uychaco
5e7f2741b4 In startup-spec check pane item count after editor has been loaded 2016-02-11 14:50:30 -08:00
Katrina Uychaco
8e33f8bf5b Wait for tab to open in webdriverio waitForPaneItemCount command 2016-02-11 11:50:44 -08:00
Max Brunsfeld
0f02663f6b Add --user-data-dir flag, to control indexedDB directory
This way, we can still use indexedDB in the integration tests

Signed-off-by: Katrina Uychaco <kuychaco@github.com>
2016-02-09 14:30:58 -08:00
Wliu
3f471cd94f Merge remote-tracking branch 'refs/remotes/origin/master' into wl-electron-35 2016-01-25 16:33:50 -05:00
case
8c5c795b35 Remove Duplicate Require Statements and Unify Syntax on ' 2016-01-15 14:35:28 -06:00
Wliu
d855613340 Merge remote-tracking branch 'refs/remotes/origin/master' into wl-electron-35 2016-01-05 17:25:51 -05:00
joshaber
d224efb00d Just test the x coordinate, I suppose. 2016-01-05 14:40:09 -05:00
joshaber
740e8c660a Put it with its friends. 2016-01-05 14:08:09 -05:00
joshaber
f64878208f Really don't need this to be its own command. 2016-01-05 14:07:50 -05:00
joshaber
2a29e7d1f4 Revert "Revert "Integration test for new window offset.""
This reverts commit c8c8bc941e.
2016-01-05 12:48:34 -05:00
joshaber
c8c8bc941e Revert "Integration test for new window offset."
This reverts commit 4ddadcc135.
2016-01-05 12:27:59 -05:00
joshaber
4ddadcc135 Integration test for new window offset. 2016-01-05 12:00:08 -05:00
Wliu
f4f5e47aab One more remote update 2015-12-14 17:35:50 -05:00
Joe Fitzgerald
19334be188 Add Appveyor CI
- Add Appveyor badge
- Add Appveyor.yml definition, with encrypted ATOM_ACCESS_TOKEN
- Add cibuild.cmd script to launch cibuild on Windows
- Prepare to release Atom on Windows from Appveyor (but don't do it yet)
- Reduce dependence on JANKY in ci scripts + tasks
- Suppress release activities on PRs for Travis and Appveyor
- Cache ~/.atom/.apm, ~/.atom/.node-gyp/.atom, and ~/.atom/.npm on Appveyor
2015-11-10 15:37:01 -07:00
Nathan Sobo
52946db179 Ensure windows/workspace present before proceeding in integration specs
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
2015-10-15 12:54:33 -06:00