Mailspring/static
Evan Morikawa 73e7c1c52e feat(tests): add integration tests
comment

Adding test harness

Using key strokes in main window test

Tests work now

Clean up argument variables

Rename list manager and get rid of old spec-helper methods

Extract out time overrides from spec-helper

Spectron test for contenteditable

fix spec exit codes and boot mode

fix(spec): cleanup N1.sh and make specs fail with exit code 1

Revert tests and get it working in window

Move to spec_integration and add window load tester

Specs pass. Console logs still in

Remove console logs

Extract N1 Launcher ready method

Make integrated unit test runner

feat(tests): adding integration tests

Summary:
The /spectron folder got moved to /spec_integration

There are now unit tests (the old ones) run via the renamed
`script/grunt run-unit-tests`

There are now integration tests run via the command `script/grunt
run-integration-tests`.

There are two types of integration tests:
1. Tests that operate on the whole app via Selenium/Chromedriver. These
tests have access to Spectron APIs but do NOT have access to any JS object
running inside the application. See the `app-boot-spec.es6` for an example
of these tests. This is tricky because we want to test the Main window,
but Spectron may latch onto any other of our loading windows. Code in
`integration-helper` give us an API that finds and loads the main window
so we can test it

2. Tests that run in the unit test suite that need Spectron to perform
integration-like behavior. These are the contentedtiable specs. The
Spectron server is accessed from the app and can be used to trigger
actions on the running app, from the app. These tests use the
windowed-test runner so Spectron can identify whether the tests have
completed, passed, or failed. Unfortunately Spectron can't access the logs
, nor the exit code of the test script thereby forcing us to parse the
HTML DOM. (Note this is still a WIP)

I also revamped the `N1.sh` file when getting the launch arguments to work
properly. It's much cleaner. We didn't need most of the data.

Test Plan: new tests

Reviewers: juan, bengotow

Differential Revision: https://phab.nylas.com/D2289

Fix composer specs

Tests can properly detect when Spectron is in the environment

Report plain text output in specs

fixing contenteditable specs

Testing slow keymaps on contenteditable specs

Move to DOm mutation

Spell as `subtree` not `subTree`
2015-12-02 13:41:14 -08:00
..
components feat(signatures): add raw signature support 2015-11-30 14:02:58 -08:00
fonts/FontAwesome Restoring SearchBar, adding FontAwesome for icons not designed yet 2015-03-03 09:49:15 -08:00
images feat(signatures): add signature support in preferences 2015-10-29 17:20:41 -04:00
mixins refactor(env): new NylasEnv global 2015-11-17 16:41:20 -08:00
package-template refactor(env): new NylasEnv global 2015-11-17 16:41:20 -08:00
sounds feat(notifications): Initial pass at new mail notifications 2015-02-20 12:19:34 -08:00
variables feat(keybindings): Show all keybindings in prefs 2015-12-01 18:31:19 -08:00
babelrc.json fix(babel): Roll back to babel@5, see details 2015-11-07 14:27:18 -08:00
buttons.less fix(prefs): Move to a sheet rather than a window, use configSchema 2015-11-23 12:20:51 -08:00
dropdowns.less Setup styles for dropdown (select) control 2015-10-21 21:27:53 +03:00
email-frame.less fix(styles): Remove custom pre tag styling for email 2015-11-24 12:35:35 -08:00
feedback.html fix(feedback): Move feedback window creation to app process 2015-11-09 12:15:24 -08:00
font-awesome.min.css refactor(env): new NylasEnv global 2015-11-17 16:41:20 -08:00
index.html rename(Nylas Mail): Replace Nylas Mail > N1 2015-09-29 09:44:30 -07:00
index.js fix(boot): Copy env from main process into renderer process on linux 2015-11-24 12:11:44 -08:00
index.less feat(signatures): add signature support 2015-11-30 11:48:24 -08:00
inputs.less fix(ui-dark): Small color adjustments, resolves #299, #148 2015-11-09 18:52:24 -08:00
jasmine.less feat(tests): add integration tests 2015-12-02 13:41:14 -08:00
linux.less fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
normalize.less refactor(env): new NylasEnv global 2015-11-17 16:41:20 -08:00
react-remote-child.html feat(preferences): WIP Preferences panel 2015-08-14 15:40:11 -07:00
resizable.less button and less changes 2015-03-03 18:09:57 -08:00
selection.less fix(lint): fix linting css errors 2015-03-26 14:49:03 -04:00
type.less feat(keybindings): Show all keybindings in prefs 2015-12-01 18:31:19 -08:00
utilities.less fix(less): Lint errors preventing successful build 2015-03-05 15:42:38 -08:00
workspace.less fix(theme): Improve styling of popout composer in dark mode 2015-11-23 18:28:30 -08:00