Merge pull request #1230 from coralproject/safari-bs-changes

Safari Browserstack changes
This commit is contained in:
Kim Gardner
2018-01-04 17:26:05 -05:00
committed by GitHub
10 changed files with 23 additions and 18 deletions
+4 -2
View File
@@ -11,6 +11,8 @@ const uniq = require('lodash/uniq');
const ms = require('ms');
const debug = require('debug')('talk:config');
const localAddress = require('ip').address('private');
//==============================================================================
// CONFIG INITIALIZATION
//==============================================================================
@@ -204,10 +206,10 @@ const CONFIG = {
if (process.env.NODE_ENV === 'test') {
if (!CONFIG.ROOT_URL) {
CONFIG.ROOT_URL = 'http://localhost:3001';
CONFIG.ROOT_URL = `http://${localAddress}:3001`;
}
if (!CONFIG.STATIC_URL) {
CONFIG.STATIC_URI = 'http://localhost:3001';
CONFIG.STATIC_URI = `http://${localAddress}:3001`;
}
} else if (!CONFIG.ROOT_URL) {
throw new Error('TALK_ROOT_URL must be provided');
+4 -8
View File
@@ -54,23 +54,19 @@ const nightwatch_config = {
},
safari: {
desiredCapabilities: {
// Safari since 8 seems to have troubles with the browserstack-local tunnel (10.18.17)
browser: 'safari',
browser_version: '10',
browser_version: '11',
},
},
// The x64 bit IEDriver that is used by IE 11 has a known issue with sendKeys where
// it may enter incorrect keys (shift + key).
ie: {
desiredCapabilities: {
browser: 'internet explorer',
os: 'Windows',
os_version: '10',
browser_version: '11',
// The x64 bit IEDriver that is used by IE 11 has a known issue with sendKeys where
// it may enter incorrect keys (shift + key).
// This adds a delay for each character as temporary fix as advised from the browserstack support.
'browserstack.customSendKeys': 800,
},
},
edge: {
+1
View File
@@ -205,6 +205,7 @@
"eslint": "^4.5.0",
"eslint-plugin-mocha": "^4.11.0",
"identity-obj-proxy": "^3.0.0",
"ip": "^1.1.5",
"jest": "^21.2.1",
"mocha": "^3.1.2",
"mocha-junit-reporter": "^1.12.1",
+2 -1
View File
@@ -1,7 +1,8 @@
module.exports = {
'@tags': ['install'],
before: (client) => {
before: (client) => {
client.setWindowPosition(0, 0);
client.resizeWindow(1600, 1200);
},
+2 -1
View File
@@ -1,7 +1,8 @@
module.exports = {
'@tags': ['admin', 'login'],
before: (client) => {
before: (client) => {
client.setWindowPosition(0, 0);
client.resizeWindow(1024, 800);
},
+2 -1
View File
@@ -1,7 +1,8 @@
module.exports = {
'@tags': ['embedStream', 'login'],
before: (client) => {
before: (client) => {
client.setWindowPosition(0, 0);
client.resizeWindow(1600, 1200);
},
+2 -1
View File
@@ -1,6 +1,7 @@
module.exports = {
before: (client) => {
before: (client) => {
client.setWindowPosition(0, 0);
client.resizeWindow(1600, 1200);
},
+2 -1
View File
@@ -1,6 +1,7 @@
module.exports = {
before: (client) => {
before: (client) => {
client.setWindowPosition(0, 0);
client.resizeWindow(1600, 1200);
},
+3 -2
View File
@@ -1,6 +1,7 @@
module.exports = {
before: (client) => {
client.setWindowPosition(0, 0);
client.resizeWindow(1600, 1200);
},
@@ -83,7 +84,7 @@ module.exports = {
'admin suspends user': (client) => {
const adminPage = client.page.admin();
const moderate = adminPage.section.moderate;
adminPage
.navigate()
.ready()
@@ -97,7 +98,7 @@ module.exports = {
.waitForElementVisible('@actionItemSuspendUser')
.click('@actionItemSuspendUser');
adminPage
adminPage
.waitForElementVisible('@suspendUserDialog')
.waitForElementVisible('@suspendUserConfirmButton')
.click('@suspendUserConfirmButton')
+1 -1
View File
@@ -4186,7 +4186,7 @@ ip@1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/ip/-/ip-1.0.1.tgz#c7e356cdea225ae71b36d70f2e71a92ba4e42590"
ip@^1.1.2, ip@^1.1.4:
ip@^1.1.2, ip@^1.1.4, ip@^1.1.5:
version "1.1.5"
resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.5.tgz#bdded70114290828c0a039e72ef25f5aaec4354a"