-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix closing automate session twice; Bump version (v1.7.2) (#69)
- Loading branch information
1 parent
58f55a9
commit 2d2b55a
Showing
3 changed files
with
41 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,22 +17,40 @@ describe('Browser names', function () { | |
}); | ||
|
||
it('Should return list of common browsers and devices', function () { | ||
const IS_AUTOMATE = process.env['BROWSERSTACK_USE_AUTOMATE'] && process.env['BROWSERSTACK_USE_AUTOMATE'] !== '0'; | ||
|
||
const REST_BROWSER_NAMES = [ | ||
'[email protected]:OS X Mavericks', | ||
'[email protected]:OS X Yosemite', | ||
'[email protected]:OS X El Capitan', | ||
'[email protected]:Windows 7', | ||
'[email protected]:Windows 8', | ||
'[email protected]:Windows 8.1', | ||
'[email protected]:Windows 10', | ||
'iPhone [email protected]', | ||
'iPhone [email protected]', | ||
'iPhone [email protected]', | ||
'Google Nexus [email protected]' | ||
]; | ||
|
||
const AUTOMATE_BROWSER_NAMES = [ | ||
'[email protected]:OS X Mavericks', | ||
'[email protected]:OS X Yosemite', | ||
'[email protected]:OS X El Capitan', | ||
'[email protected]:Windows 7', | ||
'[email protected]:Windows 8', | ||
'[email protected]:Windows 8.1', | ||
'[email protected]:Windows 10', | ||
'iPhone 7@10', | ||
'iPhone SE@11', | ||
'iPhone XR@12', | ||
'Google Nexus [email protected]' | ||
]; | ||
|
||
return browserStackProvider | ||
.getBrowserList() | ||
.then(function (list) { | ||
expect(list).to.include.members([ | ||
'[email protected]:OS X Mavericks', | ||
'[email protected]:OS X Yosemite', | ||
'[email protected]:OS X El Capitan', | ||
'[email protected]:Windows 7', | ||
'[email protected]:Windows 8', | ||
'[email protected]:Windows 8.1', | ||
'[email protected]:Windows 10', | ||
'iPhone [email protected]', | ||
'iPhone [email protected]', | ||
'iPhone [email protected]', | ||
'Google Nexus [email protected]' | ||
]); | ||
expect(list).to.include.members(IS_AUTOMATE ? AUTOMATE_BROWSER_NAMES : REST_BROWSER_NAMES); | ||
}); | ||
}); | ||
|
||
|