This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(test): move altRoot and inferRoot test off of the control flow
- Loading branch information
Showing
4 changed files
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
describe('finding elements when ng-app is nested', function() { | ||
beforeEach(function() { | ||
browser.get('alt_root_index.html#/form'); | ||
describe('finding elements when ng-app is nested', () => { | ||
beforeEach(async() => { | ||
await browser.get('alt_root_index.html#/form'); | ||
}); | ||
|
||
it('should find an element by binding', function() { | ||
var greeting = element(by.binding('{{greeting}}')); | ||
it('should find an element by binding', async() => { | ||
const greeting = element(by.binding('{{greeting}}')); | ||
|
||
expect(greeting.getText()).toEqual('Hiya'); | ||
expect(await greeting.getText()).toEqual('Hiya'); | ||
}); | ||
|
||
it('should find elements outside of angular', function() { | ||
var outside = element(by.id('outside-ng')); | ||
var inside = element(by.id('inside-ng')); | ||
it('should find elements outside of angular', async() => { | ||
const outside = element(by.id('outside-ng')); | ||
const inside = element(by.id('inside-ng')); | ||
|
||
expect(outside.getText()).toEqual('{{1 + 2}}'); | ||
expect(inside.getText()).toEqual('3'); | ||
expect(await outside.getText()).toEqual('{{1 + 2}}'); | ||
expect(await inside.getText()).toEqual('3'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters