-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Use one window for all specs in the suite on more integration tests #4635
Conversation
|
||
|
||
describe("Working with unsaved changes", function () { | ||
describe("CSS Intgration Tests", function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This File is a mess, but I just moved both integration suits from this file to this new suite used to create and destroy the window.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Reviewing |
|
||
// open file | ||
runs(function () { | ||
FileViewController.openAndSelectDocument(path, FileViewController.PROJECT_MANAGER) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can remove didOpen
, gotError
and the waitsFor
below, then replace this with
waitsForDone(FileViewController.openAndSelectDocument(path, FileViewController.PROJECT_MANAGER), "FILE_OPEN on file timeout", 1000);
Merging. My note about cleaning up promise handling can really apply to most of our unit tests that were created before |
Use one window for all specs in the suite on more integration tests
Filed #4638 |
I just integrated the specs on the following tests into a single window:
@jasonsanjose Want to review these too? Most were pretty simple to join and all tests are passing fast!!
Is so much nicer to run all integration tests now :)