mirror of
https://github.com/wassname/talk.git
synced 2026-07-08 04:03:09 +08:00
Stabilize browserstack testing
This commit is contained in:
@@ -29,30 +29,37 @@ const nightwatch_config = {
|
||||
chrome: {
|
||||
desiredCapabilities: {
|
||||
browser: 'chrome',
|
||||
browser_version: '60',
|
||||
},
|
||||
},
|
||||
firefox: {
|
||||
desiredCapabilities: {
|
||||
browser: 'firefox',
|
||||
browser_version: '56',
|
||||
},
|
||||
},
|
||||
safari: {
|
||||
desiredCapabilities: {
|
||||
|
||||
// Safari since 8 seems to have troubles with the browserstack-local tunnel (10.18.17)
|
||||
browser: 'safari',
|
||||
browser_version: '10',
|
||||
},
|
||||
},
|
||||
ie: {
|
||||
desiredCapabilities: {
|
||||
browser: 'internet explorer',
|
||||
|
||||
// Windows 10 seem to have troubles with the browserstackLocal tunnel (11.17.17).
|
||||
// Windows 10 + IE seems to have troubles with the browserstack-local tunnel (10.17.17).
|
||||
os: 'Windows',
|
||||
os_version: '8.1',
|
||||
browser_version: '11',
|
||||
},
|
||||
},
|
||||
edge: {
|
||||
desiredCapabilities: {
|
||||
browser: 'edge',
|
||||
browser_version: '15',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ if [[ "${CIRCLE_BRANCH}" == "master" ]]; then
|
||||
# Test using browserstack.
|
||||
browserstack chrome
|
||||
browserstack firefox
|
||||
browserstack safari
|
||||
# browserstack safari – Safari >= 8 has issues connecting to browserstack-local. Safari < 8 is too old.
|
||||
browserstack ie
|
||||
browserstack edge
|
||||
|
||||
|
||||
@@ -22,8 +22,10 @@ module.exports = {
|
||||
.waitForElementVisible('@signInButton')
|
||||
.click('@signInButton');
|
||||
|
||||
client.pause(3000);
|
||||
|
||||
// Focusing on the Login PopUp
|
||||
client.window_handles((result) => {
|
||||
client.windowHandles((result) => {
|
||||
const handle = result.value[1];
|
||||
client.switchWindow(handle);
|
||||
});
|
||||
@@ -44,7 +46,7 @@ module.exports = {
|
||||
.click('@loginButton');
|
||||
|
||||
// Focusing on the Embed Window
|
||||
client.window_handles((result) => {
|
||||
client.windowHandles((result) => {
|
||||
const handle = result.value[0];
|
||||
client.switchWindow(handle);
|
||||
});
|
||||
@@ -106,7 +108,7 @@ module.exports = {
|
||||
},
|
||||
'user goes to the stream and replies and reacts to comment': (client) => {
|
||||
const embedStream = client.page.embedStream();
|
||||
|
||||
|
||||
const embed = embedStream
|
||||
.navigate()
|
||||
.getEmbedSection();
|
||||
@@ -128,7 +130,7 @@ module.exports = {
|
||||
},
|
||||
'user logs out': (client) => {
|
||||
const embedStream = client.page.embedStream();
|
||||
|
||||
|
||||
const embed = embedStream
|
||||
.navigate()
|
||||
.getEmbedSection();
|
||||
|
||||
Reference in New Issue
Block a user