Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

chore(test): move restart_spec off of the control flow #5014

Merged
merged 5 commits into from
Nov 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions spec/basic/restart_spec.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
describe('browser.restart', function() {
it('doesn\'t break ignoreSynchronization', function() {
browser.get('index.html#/polling');
browser.restart();
describe('browser.restart', () => {
it('doesn\'t break ignoreSynchronization', async () => {
await browser.get('index.html#/polling');
await browser.restart();

browser.ignoreSynchronization = true;
// Get a non-angular page. It shouldn't fail if ignoreSynchronization is on.
browser.get('https://google.com/');
await browser.get('https://google.com/');
});

afterAll(function() {
afterAll(() => {
browser.ignoreSynchronization = false;
});
});
1 change: 1 addition & 0 deletions spec/basicConf.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ exports.config = {
// 'basic/handling_spec.js',
// 'basic/mockmodule_spec.js',
// 'basic/navigation_spec.js',
// 'basic/restart_spec.js',
],

// Exclude patterns are relative to this directory.
Expand Down
1 change: 1 addition & 0 deletions spec/ciFullConf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ exports.config = {
// 'basic/handling_spec.js'
// 'basic/mockmodule_spec.js',
// 'basic/navigation_spec.js',
// 'basic/restart_spec.js',
],

// Exclude patterns are relative to this directory.
Expand Down