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.
fix(driverProviders): quit forked instances w/ local driver provider (#…
…3787) - fix driver provider quit session to not throw error and quit - should fix sauce labs test, enabling expected conditions test with forked instance - checked that chromedriver does not persist in the background - add local driver test with forked instance to test suite - organize attach session and local specs to driverProviders directory closes #3780, closes #3779, closes #3772
- Loading branch information
Showing
8 changed files
with
54 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
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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
var env = require('./environment'); | ||
|
||
exports.config = { | ||
|
||
framework: 'jasmine', | ||
|
||
specs: [ | ||
'driverProviders/local/*_spec.js' | ||
], | ||
|
||
capabilities: env.capabilities, | ||
|
||
baseUrl: env.baseUrl, | ||
|
||
// Special option for Angular2, to test against all Angular2 applications | ||
// on the page. This means that Protractor will wait for every app to be | ||
// stable before each action, and search within all apps when finding | ||
// elements. | ||
useAllAngular2AppRoots: true | ||
}; |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
describe('local driver provider', function() { | ||
var URL = '/ng2/#/async'; | ||
|
||
it('should get a page and find an element', function() { | ||
browser.get(URL); | ||
var increment = $('#increment'); | ||
expect(increment).toBeDefined(); | ||
}); | ||
|
||
it('should get a forked instance, and find an element', function() { | ||
browser.get(URL); | ||
var browser2 = browser.forkNewDriverInstance(); | ||
browser2.get(URL); | ||
var increment = browser2.$('#increment'); | ||
expect(increment).toBeDefined(); | ||
}); | ||
}); |