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

Commit cc45940

Browse files
holdfenytolvajheathkit
authored andcommitted
Update spec.ts (#3632)
fix import and text check
1 parent 6626ce7 commit cc45940

File tree

1 file changed

+2
-2
lines changed
  • exampleTypescript/asyncAwait

1 file changed

+2
-2
lines changed

exampleTypescript/asyncAwait/spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Same process for importing and compiling at ../spec.ts, except you need to
22
// pass the `-t ES2015` flag to `tsc`.
3-
import {browser, element, by, By, $, $$, ExpectedConditions} from 'protractor/globals';
3+
import {browser, element, by, By, $, $$, ExpectedConditions} from 'protractor';
44

55
describe('async function', function() {
66
it('should wait on async function in conditional', async function() : Promise<any> {
77
browser.get('http://www.angularjs.org');
88
let todoList = element.all(by.repeater('todo in todoList.todos'));
99
if ((await todoList.count()) > 1) {
10-
expect(todoList.get(1).getText()).toEqual('build an angular app');
10+
expect((await todoList.get(1).getText())).toEqual('build an angular app');
1111
}
1212
});
1313
});

0 commit comments

Comments
 (0)