Skip to content

Commit 19033b2

Browse files
fix(nightwatch.conf.js): config issue
1 parent e789f18 commit 19033b2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

packages/@vue/cli-plugin-e2e-nightwatch/nightwatch.conf.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ const deepmerge = require('deepmerge')
55

66
const Services = {}
77
loadServices()
8-
8+
const VUE_DEV_SERVER_URL = process.env.VUE_DEV_SERVER_URL
9+
const BROWSERSTACK_USER = process.env.BROWSERSTACK_USER
10+
const BROWSERSTACK_KEY = process.env.VUE_DEV_SERVER_URL
911
const userOptions = JSON.parse(process.env.VUE_NIGHTWATCH_USER_OPTIONS || '{}')
1012
const concurrentMode = process.env.VUE_NIGHTWATCH_CONCURRENT === '1'
1113
const useSelenium = process.env.VUE_NIGHTWATCH_USE_SELENIUM === '1'
@@ -27,10 +29,10 @@ const defaultSettings = {
2729
page_objects_path: 'tests/e2e/page-objects',
2830

2931
// See https://nightwatchjs.org/guide/extending-nightwatch/#writing-custom-commands
30-
custom_commands_path: 'tests/e2e/custom-assertions',
32+
custom_commands_path: 'tests/e2e/custom-commands',
3133

3234
// See https://nightwatchjs.org/guide/extending-nightwatch/#writing-custom-assertions
33-
custom_assertions_path: 'tests/e2e/custom-commands',
35+
custom_assertions_path: 'tests/e2e/custom-assertions',
3436

3537
// See https://nightwatchjs.org/guide/#external-globals
3638
globals_path: path.resolve('tests/e2e/globals.js'),
@@ -42,7 +44,7 @@ const defaultSettings = {
4244
test_settings: {
4345
default: {
4446
disable_error_log: false,
45-
launch_url: '${VUE_DEV_SERVER_URL}', // eslint-disable-line no-template-curly-in-string
47+
launch_url: `${VUE_DEV_SERVER_URL}`,
4648

4749
screenshots: {
4850
enabled: false,
@@ -140,8 +142,8 @@ const defaultSettings = {
140142
desiredCapabilities: {
141143
'bstack:options': {
142144
local: 'false',
143-
userName: '${BROWSERSTACK_USER}', // eslint-disable-line no-template-curly-in-string
144-
accessKey: '${BROWSERSTACK_KEY}' // eslint-disable-line no-template-curly-in-string
145+
userName: `${BROWSERSTACK_USER}`,
146+
accessKey: `${BROWSERSTACK_KEY}`
145147
}
146148
},
147149

0 commit comments

Comments
 (0)