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

Commit 0c6b134

Browse files
committed
chore(tests): fix spec/ng2/timeout_spec test (#5067)
1 parent bd0bfb1 commit 0c6b134

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

spec/ng2/async_spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe('async angular2 application', () => {
7373
7000);
7474
await timeout.$('.cancel').click();
7575

76-
const text = timeout.$('.val').getText();
76+
const text = await timeout.$('.val').getText();
7777
await browser.driver.sleep(3000);
7878
expect(await timeout.$('.val').getText()).toEqual(text);
7979
});

spec/ng2/timeout_spec.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
describe('async angular2 application timeout', function() {
2-
var URL = '/ng2/#/async';
1+
describe('async angular2 application timeout', () => {
2+
const URL = '/ng2/#/async';
33

4-
it('should timeout if intervals are used in the NgZone', function() {
5-
browser.get(URL);
6-
var timeout = $('#periodicIncrement');
7-
timeout.$('.action').click();
8-
timeout.$('.cancel').click();
4+
it('should timeout if intervals are used in the NgZone', async () => {
5+
await browser.get(URL);
6+
const timeout = $('#periodicIncrement');
7+
await timeout.$('.action').click();
8+
await timeout.$('.cancel').click();
99
});
1010
});

0 commit comments

Comments
 (0)