We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TL;DR: Looks like this was user error on my part. I forgot to set the environment variables for the browserstack credentials 🤦♂️
Trying to run tests using the run-multiple command.
run-multiple
All tests fail after the Before() callback is run with the same error.
Before()
etdev_l@wp48-php56:/workspace/core-products/product/core$ codeceptjs run-multiple --all --verbose [2.all:Safari] CodeceptJS v1.0.0 [2.all:Safari] Using test root "/workspace/core-products/product/core" [2.all:Safari] product Builder -> General -- [2.all:Safari] [1] Starting recording promises [2.all:Safari] Emitted | suite.before ([object Object]) [2.all:Safari] [1] Queued | hook WebDriverIO._beforeSuite() [2.all:Safari] [1] Queued | hook BaseHelper._beforeSuite() [2.all:Safari] Load the product Builder [2.all:Safari] > [Session] Starting singleton browser session [2.all:Safari] Emitted | test.before [2.all:Safari] [1] Queued | hook WebDriverIO._before() [2.all:Safari] [1] Queued | hook BaseHelper._before() [2.all:Safari] Emitted | step.before (I am on page "/product/wp-login.php") [2.all:Safari] [1] Queued | amOnPage: "/product/wp-login.php" [2.all:Safari] Emitted | step.after (I am on page "/product/wp-login.php") [2.all:Safari] [1] Queued | step passed [2.all:Safari] [1] Queued | return result [2.all:Safari] Emitted | step.before (I fill field "#user_login", "productuser") [2.all:Safari] [1] Queued | fillField: "#user_login", "productuser" [2.all:Safari] Emitted | step.after (I fill field "#user_login", "productuser") [2.all:Safari] [1] Queued | step passed [2.all:Safari] [1] Queued | return result [2.all:Safari] Emitted | step.before (I fill field "#user_pass", "welovewordpress") [2.all:Safari] [1] Queued | fillField: "#user_pass", "welovewordpress" [2.all:Safari] Emitted | step.after (I fill field "#user_pass", "welovewordpress") [2.all:Safari] [1] Queued | step passed [2.all:Safari] [1] Queued | return result [2.all:Safari] Emitted | step.before (I click "#wp-submit") [2.all:Safari] [1] Queued | click: "#wp-submit" [2.all:Safari] Emitted | step.after (I click "#wp-submit") [2.all:Safari] [1] Queued | step passed [2.all:Safari] [1] Queued | return result [2.all:Safari] Emitted | step.before (I wait 5) [2.all:Safari] [1] Queued | wait: 5 [2.all:Safari] Emitted | step.after (I wait 5) [2.all:Safari] [1] Queued | step passed [2.all:Safari] [1] Queued | return result [2.all:Safari] Emitted | step.before (I see in current url "/wp-admin") [2.all:Safari] [1] Queued | seeInCurrentUrl: "/wp-admin" [2.all:Safari] Emitted | step.after (I see in current url "/wp-admin") [2.all:Safari] [1] Queued | step passed [2.all:Safari] [1] Queued | return result [1.all:Chrome] CodeceptJS v1.0.0 [1.all:Chrome] Using test root "/workspace/core-products/product/core" [1.all:Chrome] product Builder -> General -- [1.all:Chrome] [1] Starting recording promises [1.all:Chrome] Emitted | suite.before ([object Object]) [1.all:Chrome] [1] Queued | hook WebDriverIO._beforeSuite() [1.all:Chrome] [1] Queued | hook BaseHelper._beforeSuite() [1.all:Chrome] Load the product Builder [1.all:Chrome] > [Session] Starting singleton browser session [1.all:Chrome] Emitted | test.before [1.all:Chrome] [1] Queued | hook WebDriverIO._before() [1.all:Chrome] [1] Queued | hook BaseHelper._before() [1.all:Chrome] Emitted | step.before (I am on page "/product/wp-login.php") [1.all:Chrome] [1] Queued | amOnPage: "/product/wp-login.php" [1.all:Chrome] Emitted | step.after (I am on page "/product/wp-login.php") [1.all:Chrome] [1] Queued | step passed [1.all:Chrome] [1] Queued | return result [1.all:Chrome] Emitted | step.before (I fill field "#user_login", "productuser") [1.all:Chrome] [1] Queued | fillField: "#user_login", "productuser" [1.all:Chrome] Emitted | step.after (I fill field "#user_login", "productuser") [1.all:Chrome] [1] Queued | step passed [1.all:Chrome] [1] Queued | return result [1.all:Chrome] Emitted | step.before (I fill field "#user_pass", "welovewordpress") [1.all:Chrome] [1] Queued | fillField: "#user_pass", "welovewordpress" [1.all:Chrome] Emitted | step.after (I fill field "#user_pass", "welovewordpress") [1.all:Chrome] [1] Queued | step passed [1.all:Chrome] [1] Queued | return result [1.all:Chrome] Emitted | step.before (I click "#wp-submit") [1.all:Chrome] [1] Queued | click: "#wp-submit" [1.all:Chrome] Emitted | step.after (I click "#wp-submit") [1.all:Chrome] [1] Queued | step passed [1.all:Chrome] [1] Queued | return result [1.all:Chrome] Emitted | step.before (I wait 5) [1.all:Chrome] [1] Queued | wait: 5 [1.all:Chrome] Emitted | step.after (I wait 5) [1.all:Chrome] [1] Queued | step passed [1.all:Chrome] [1] Queued | return result [1.all:Chrome] Emitted | step.before (I see in current url "/wp-admin") [1.all:Chrome] [1] Queued | seeInCurrentUrl: "/wp-admin" [1.all:Chrome] Emitted | step.after (I see in current url "/wp-admin") [1.all:Chrome] [1] Queued | step passed [1.all:Chrome] [1] Queued | return result [2.all:Safari] [1] Error | Error: Authorization required [2.all:Safari] Emitted | step.failed (I am on page "/product/wp-login.php") [2.all:Safari] Step finished in NaN sec [2.all:Safari] [1] Error | Error: Authorization required [2.all:Safari] Emitted | step.failed (I fill field "#user_login", "productuser") [2.all:Safari] Step finished in NaN sec [2.all:Safari] [1] Error | Error: Authorization required [2.all:Safari] Emitted | step.failed (I fill field "#user_pass", "welovewordpress") [2.all:Safari] Step finished in NaN sec [2.all:Safari] [1] Error | Error: Authorization required [2.all:Safari] Emitted | step.failed (I click "#wp-submit") [2.all:Safari] Step finished in NaN sec [2.all:Safari] [1] Error | Error: Authorization required [2.all:Safari] Emitted | step.failed (I wait 5) [2.all:Safari] Step finished in NaN sec [2.all:Safari] [1] Error | Error: Authorization required [2.all:Safari] Emitted | step.failed (I see in current url "/wp-admin") [2.all:Safari] Step finished in NaN sec [2.all:Safari] [1] Error | Error: Authorization required [2.all:Safari] Emitted | test.failed ([object Object]) [2.all:Safari] [1] Queued | hook WebDriverIO._failed() [2.all:Safari] [1] Queued | hook BaseHelper._failed() [2.all:Safari] ✖ "before each" hook: Before for "Load the product Builder" in 171ms [2.all:Safari] [1] Error | Error: Authorization required [2.all:Safari] Error: Authorization required (node:1043) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Authorization required [2.all:Safari] Emitted | test.after [2.all:Safari] [1] Queued | hook WebDriverIO._after() [2.all:Safari] [1] Queued | hook BaseHelper._after() (node:1043) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: A session id is required for this command but wasn't found in the response payload [2.all:Safari] Emitted | suite.after ([object Object]) [2.all:Safari] [1] Queued | hook WebDriverIO._afterSuite() [2.all:Safari] [1] Queued | hook BaseHelper._afterSuite() [2.all:Safari] Visual Builder -> General -- (node:1043) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 2) (node:1043) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Error: A session id is required for this command but wasn't found in the response payload [2.all:Safari] Emitted | suite.before ([object Object]) [2.all:Safari] [1] Queued | hook WebDriverIO._beforeSuite() [2.all:Safari] [1] Queued | hook BaseHelper._beforeSuite() [2.all:Safari] Load the Visual Builder on a new post (node:1043) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 3) (node:1043) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Error: A session id is required for this command but wasn't found in the response payload [2.all:Safari] Emitted | test.before [2.all:Safari] [1] Queued | hook WebDriverIO._before() [2.all:Safari] [1] Queued | hook BaseHelper._before() [2.all:Safari] Emitted | step.before (I am on page "/product/wp-login.php") [2.all:Safari] [1] Queued | amOnPage: "/product/wp-login.php" [2.all:Safari] Emitted | step.after (I am on page "/product/wp-login.php") [2.all:Safari] [1] Queued | step passed [2.all:Safari] [1] Queued | return result [2.all:Safari] Emitted | step.before (I fill field "#user_login", "productuser") [2.all:Safari] [1] Queued | fillField: "#user_login", "productuser" [2.all:Safari] Emitted | step.after (I fill field "#user_login", "productuser") [2.all:Safari] [1] Queued | step passed [2.all:Safari] [1] Queued | return result [2.all:Safari] Emitted | step.before (I fill field "#user_pass", "welovewordpress") [2.all:Safari] [1] Queued | fillField: "#user_pass", "welovewordpress" [2.all:Safari] Emitted | step.after (I fill field "#user_pass", "welovewordpress") [2.all:Safari] [1] Queued | step passed [2.all:Safari] [1] Queued | return result [2.all:Safari] Emitted | step.before (I click "#wp-submit") [2.all:Safari] [1] Queued | click: "#wp-submit" [2.all:Safari] Emitted | step.after (I click "#wp-submit") [2.all:Safari] [1] Queued | step passed [2.all:Safari] [1] Queued | return result [2.all:Safari] Emitted | step.before (I wait 5) [2.all:Safari] [1] Queued | wait: 5 [2.all:Safari] Emitted | step.after (I wait 5) [2.all:Safari] [1] Queued | step passed [2.all:Safari] [1] Queued | return result [2.all:Safari] Emitted | step.before (I see in current url "/wp-admin") [2.all:Safari] [1] Queued | seeInCurrentUrl: "/wp-admin" [2.all:Safari] Emitted | step.after (I see in current url "/wp-admin") [2.all:Safari] [1] Queued | step passed [2.all:Safari] [1] Queued | return result (node:1043) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 4) [2.all:Safari] [1] Error | Error: A session id is required for this command but wasn't found in the response payload [2.all:Safari] Emitted | step.failed (I am on page "/product/wp-login.php") [2.all:Safari] Step finished in NaN sec [2.all:Safari] [1] Error | Error: A session id is required for this command but wasn't found in the response payload [2.all:Safari] Emitted | step.failed (I fill field "#user_login", "productuser") [2.all:Safari] Step finished in NaN sec [2.all:Safari] [1] Error | Error: A session id is required for this command but wasn't found in the response payload [2.all:Safari] Emitted | step.failed (I fill field "#user_pass", "welovewordpress") [2.all:Safari] Step finished in NaN sec [2.all:Safari] [1] Error | Error: A session id is required for this command but wasn't found in the response payload [2.all:Safari] Emitted | step.failed (I click "#wp-submit") [2.all:Safari] Step finished in NaN sec [2.all:Safari] [1] Error | Error: A session id is required for this command but wasn't found in the response payload [2.all:Safari] Emitted | step.failed (I wait 5) [2.all:Safari] Step finished in NaN sec [2.all:Safari] [1] Error | Error: A session id is required for this command but wasn't found in the response payload [2.all:Safari] Emitted | step.failed (I see in current url "/wp-admin") [2.all:Safari] Step finished in NaN sec [2.all:Safari] [1] Error | Error: A session id is required for this command but wasn't found in the response payload [2.all:Safari] Emitted | test.failed ([object Object]) [2.all:Safari] [1] Queued | hook WebDriverIO._failed() [2.all:Safari] [1] Queued | hook BaseHelper._failed() [2.all:Safari] ✖ "before each" hook: Before for "Load the Visual Builder on a new post" in 6ms [2.all:Safari] [1] Error | Error: A session id is required for this command but wasn't found in the response payload [2.all:Safari] Error: A session id is required for this command but wasn't found in the response payload [2.all:Safari] Emitted | test.after [2.all:Safari] [1] Queued | hook WebDriverIO._after() [2.all:Safari] [1] Queued | hook BaseHelper._after() (node:1043) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 5): Error: A session id is required for this command but wasn't found in the response payload [2.all:Safari] Emitted | suite.after ([object Object]) [2.all:Safari] [1] Queued | hook WebDriverIO._afterSuite() [2.all:Safari] [1] Queued | hook BaseHelper._afterSuite() (node:1043) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 5) (node:1043) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): Error: A session id is required for this command but wasn't found in the response payload [2.all:Safari] -- FAILURES: 1) product Builder -> General "before each" hook: Before for "Load the product Builder": Error: Authorization required at execute("return [screen.width, screen.height]") - WebDriverIO.js:291:20 2) Visual Builder -> General "before each" hook: Before for "Load the Visual Builder on a new post": A session id is required for this command but wasn't found in the response payload rror: A session id is required for this command but wasn't found in the response payload [2.all:Safari] FAIL | 0 passed, 2 failed // 208ms [2.all:Safari] Emitted | global.result ([object Object]) [2.all:Safari] [1] Queued | hook WebDriverIO._finishTest() [2.all:Safari] [1] Queued | hook BaseHelper._finishTest() (node:1043) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 6) (node:1043) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 7): Error: A session id is required for this command but wasn't found in the response payload [1.all:Chrome] [1] Error | Error: Authorization required [1.all:Chrome] Emitted | step.failed (I am on page "/product/wp-login.php") [1.all:Chrome] Step finished in NaN sec [1.all:Chrome] [1] Error | Error: Authorization required [1.all:Chrome] Emitted | step.failed (I fill field "#user_login", "productuser") [1.all:Chrome] Step finished in NaN sec [1.all:Chrome] [1] Error | Error: Authorization required [1.all:Chrome] Emitted | step.failed (I fill field "#user_pass", "welovewordpress") [1.all:Chrome] Step finished in NaN sec [1.all:Chrome] [1] Error | Error: Authorization required [1.all:Chrome] Emitted | step.failed (I click "#wp-submit") [1.all:Chrome] Step finished in NaN sec [1.all:Chrome] [1] Error | Error: Authorization required [1.all:Chrome] Emitted | step.failed (I wait 5) [1.all:Chrome] Step finished in NaN sec [1.all:Chrome] [1] Error | Error: Authorization required [1.all:Chrome] Emitted | step.failed (I see in current url "/wp-admin") [1.all:Chrome] Step finished in NaN sec [1.all:Chrome] [1] Error | Error: Authorization required [1.all:Chrome] Emitted | test.failed ([object Object]) [1.all:Chrome] [1] Queued | hook WebDriverIO._failed() [1.all:Chrome] [1] Queued | hook BaseHelper._failed() [1.all:Chrome] ✖ "before each" hook: Before for "Load the product Builder" in 158ms [1.all:Chrome] [1] Error | Error: Authorization required [1.all:Chrome] Error: Authorization required (node:1042) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Authorization required [1.all:Chrome] Emitted | test.after [1.all:Chrome] [1] Queued | hook WebDriverIO._after() [1.all:Chrome] [1] Queued | hook BaseHelper._after() (node:1042) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: A session id is required for this command but wasn't found in the response payload [1.all:Chrome] Emitted | suite.after ([object Object]) [1.all:Chrome] [1] Queued | hook WebDriverIO._afterSuite() [1.all:Chrome] [1] Queued | hook BaseHelper._afterSuite() [1.all:Chrome] Visual Builder -> General -- (node:1042) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 2) (node:1042) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Error: A session id is required for this command but wasn't found in the response payload [1.all:Chrome] Emitted | suite.before ([object Object]) [1.all:Chrome] [1] Queued | hook WebDriverIO._beforeSuite() [1.all:Chrome] [1] Queued | hook BaseHelper._beforeSuite() [1.all:Chrome] Load the Visual Builder on a new post (node:1042) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 3) (node:1042) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Error: A session id is required for this command but wasn't found in the response payload [1.all:Chrome] Emitted | test.before [1.all:Chrome] [1] Queued | hook WebDriverIO._before() [1.all:Chrome] [1] Queued | hook BaseHelper._before() [1.all:Chrome] Emitted | step.before (I am on page "/product/wp-login.php") [1.all:Chrome] [1] Queued | amOnPage: "/product/wp-login.php" [1.all:Chrome] Emitted | step.after (I am on page "/product/wp-login.php") [1.all:Chrome] [1] Queued | step passed [1.all:Chrome] [1] Queued | return result [1.all:Chrome] Emitted | step.before (I fill field "#user_login", "productuser") [1.all:Chrome] [1] Queued | fillField: "#user_login", "productuser" [1.all:Chrome] Emitted | step.after (I fill field "#user_login", "productuser") [1.all:Chrome] [1] Queued | step passed [1.all:Chrome] [1] Queued | return result [1.all:Chrome] Emitted | step.before (I fill field "#user_pass", "welovewordpress") [1.all:Chrome] [1] Queued | fillField: "#user_pass", "welovewordpress" [1.all:Chrome] Emitted | step.after (I fill field "#user_pass", "welovewordpress") [1.all:Chrome] [1] Queued | step passed [1.all:Chrome] [1] Queued | return result [1.all:Chrome] Emitted | step.before (I click "#wp-submit") [1.all:Chrome] [1] Queued | click: "#wp-submit" [1.all:Chrome] Emitted | step.after (I click "#wp-submit") [1.all:Chrome] [1] Queued | step passed [1.all:Chrome] [1] Queued | return result [1.all:Chrome] Emitted | step.before (I wait 5) [1.all:Chrome] [1] Queued | wait: 5 [1.all:Chrome] Emitted | step.after (I wait 5) [1.all:Chrome] [1] Queued | step passed [1.all:Chrome] [1] Queued | return result [1.all:Chrome] Emitted | step.before (I see in current url "/wp-admin") [1.all:Chrome] [1] Queued | seeInCurrentUrl: "/wp-admin" [1.all:Chrome] Emitted | step.after (I see in current url "/wp-admin") [1.all:Chrome] [1] Queued | step passed [1.all:Chrome] [1] Queued | return result (node:1042) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 4) [1.all:Chrome] [1] Error | Error: A session id is required for this command but wasn't found in the response payload [1.all:Chrome] Emitted | step.failed (I am on page "/product/wp-login.php") [1.all:Chrome] Step finished in NaN sec [1.all:Chrome] [1] Error | Error: A session id is required for this command but wasn't found in the response payload [1.all:Chrome] Emitted | step.failed (I fill field "#user_login", "productuser") [1.all:Chrome] Step finished in NaN sec [1.all:Chrome] [1] Error | Error: A session id is required for this command but wasn't found in the response payload [1.all:Chrome] Emitted | step.failed (I fill field "#user_pass", "welovewordpress") [1.all:Chrome] Step finished in NaN sec [1.all:Chrome] [1] Error | Error: A session id is required for this command but wasn't found in the response payload [1.all:Chrome] Emitted | step.failed (I click "#wp-submit") [1.all:Chrome] Step finished in NaN sec [1.all:Chrome] [1] Error | Error: A session id is required for this command but wasn't found in the response payload [1.all:Chrome] Emitted | step.failed (I wait 5) [1.all:Chrome] Step finished in NaN sec [1.all:Chrome] [1] Error | Error: A session id is required for this command but wasn't found in the response payload [1.all:Chrome] Emitted | step.failed (I see in current url "/wp-admin") [1.all:Chrome] Step finished in NaN sec [1.all:Chrome] [1] Error | Error: A session id is required for this command but wasn't found in the response payload [1.all:Chrome] Emitted | test.failed ([object Object]) [1.all:Chrome] [1] Queued | hook WebDriverIO._failed() [1.all:Chrome] [1] Queued | hook BaseHelper._failed() [1.all:Chrome] ✖ "before each" hook: Before for "Load the Visual Builder on a new post" in 6ms [1.all:Chrome] [1] Error | Error: A session id is required for this command but wasn't found in the response payload [1.all:Chrome] Error: A session id is required for this command but wasn't found in the response payload [1.all:Chrome] Emitted | test.after [1.all:Chrome] [1] Queued | hook WebDriverIO._after() [1.all:Chrome] [1] Queued | hook BaseHelper._after() (node:1042) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 5): Error: A session id is required for this command but wasn't found in the response payload [1.all:Chrome] Emitted | suite.after ([object Object]) [1.all:Chrome] [1] Queued | hook WebDriverIO._afterSuite() [1.all:Chrome] [1] Queued | hook BaseHelper._afterSuite() (node:1042) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 5) (node:1042) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): Error: A session id is required for this command but wasn't found in the response payload [1.all:Chrome] -- FAILURES: 1) product Builder -> General "before each" hook: Before for "Load the product Builder": Error: Authorization required at execute("return [screen.width, screen.height]") - WebDriverIO.js:291:20 2) Visual Builder -> General "before each" hook: Before for "Load the Visual Builder on a new post": A session id is required for this command but wasn't found in the response payload rror: A session id is required for this command but wasn't found in the response payload [1.all:Chrome] FAIL | 0 passed, 2 failed // 194ms [1.all:Chrome] Emitted | global.result ([object Object]) [1.all:Chrome] [1] Queued | hook WebDriverIO._finishTest() [1.all:Chrome] [1] Queued | hook BaseHelper._finishTest() (node:1042) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 6) (node:1042) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 7): Error: A session id is required for this command but wasn't found in the response payload
Provide test source code if related
Feature( 'product Builder -> General' ); Before( ( I, login_page ) => { login_page.login(); }); Scenario( 'Load the product Builder', ( I, post_new_page ) => { post_new_page.enable_product_builder_on_new_post(); });
// External Dependencies const get = require('lodash/get'); // Internal Dependencies const PageObject = require( '../page-object' ); let I; const LoginPage = { password:'', path: 'wp-login.php', site: global.SITE, username: global.SITE, selectors: { buttons: { login: '#wp-submit', }, elements: {}, fields: { username: '#user_login', password: '#user_pass', } }, _init() { I = require('../../AcceptanceTester'); this.path = `/${this.username}/${this.path}`; }, login() { I.amOnPage( this.path ); I.fillField( this.field( 'username' ), `${this.username}user` ); I.fillField( this.field( 'password' ), this.password ); I.click( this.button( 'login' ) ); I.seeInCurrentUrl( '/wp-admin' ); }, }; module.exports = PageObject( LoginPage );
let BROWSER; let SITE; let SUITES; try { [SITE, ...SUITES] = process.profile.split( ',' ); } catch ( err ) { BROWSER = 'Chrome'; SITE = 'product'; } const OS = 'Safari' === BROWSER ? 'OS X' : 'Windows'; const OS_VERSION = 'OS X' === OS ? 'El Capitan' : '10'; const OUTPUT = `./tests/_output/${SITE}`; global.SITE = SITE; const config = { tests: `**/acceptance/{${SITE},product-builder}/**/**.js`, timeout: 10000, output: OUTPUT, multiple: { all: { browsers: ['Chrome', 'Safari'], }, }, helpers: { WebDriverIO: { driver: 'browserstack', user: process.env.BROWSERSTACK_USER, key: process.env.BROWSERSTACK_KEY, url: `http://${process.env.VIRTUAL_HOST}/${SITE}`, browser: BROWSER, host: 'hub-cloud.browserstack.com', port: 80, windowSize: 'maximize', smartWait: 5000, restart: false, keepCookies: true, desiredCapabilities: { os: OS, os_version: OS_VERSION, resolution: '1920x1080', project: process.env.BS_PROJECT, build: process.env.BS_BUILD, name: process.env.BS_NAME, clear_cookies: false, acceptSslCerts: true, 'browserstack.debug': true, 'browserstack.local': true, }, }, BaseHelper: { require: './tests/acceptance/_support/base-helper.js', profile: BROWSER.toLowerCase(), site: SITE, }, }, include: { I: './tests/acceptance/AcceptanceTester.js', login_page: './tests/acceptance/_support/pages/Login.js', post_new_page: './tests/acceptance/_support/pages/PostNew.js', product_builder: './tests/acceptance/_support/fragments/productBuilder.js', }, mocha: { reporterOptions: { reportDir: `${OUTPUT}/report`, }, }, }; module.exports.config = config;
The text was updated successfully, but these errors were encountered:
Looks like this was user error on my part. I forgot to set the environment variables for the browserstack credentials 🤦♂️
Sorry, something went wrong.
No branches or pull requests
TL;DR: Looks like this was user error on my part. I forgot to set the environment variables for the browserstack credentials 🤦♂️
What are you trying to achieve?
Trying to run tests using the
run-multiple
command.What do you get instead?
All tests fail after the
Before()
callback is run with the same error.Details
Related:
The text was updated successfully, but these errors were encountered: