Skip to content

Commit

Permalink
SBVT-2179: Fixing issue if projectToken contained // (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
tnelms1 authored Dec 4, 2023
1 parent 0ed249f commit 7ced5bc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ function makeGlobalRunHooks() {
return configFile;
}
}
if (!configFile.projectToken.split('/')[1]) { //check to make sure user added the auth part(~second-half) of projectToken
if (!configFile.projectToken.split(/\/(.*)/s)[1]) { //check to make sure user added the auth part(~second-half) of projectToken
const message = `Please add your full projectToken for example -> ** projectToken: 'xxxxxxxx/xxxxxxxxxxxx' **`
configFile.fail = message;
logger.fatal(message);
Expand Down
7 changes: 4 additions & 3 deletions test/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"main": "index.js",
"scripts": {
"test": "npx cypress run --spec 'cypress/e2e/test-spec/test_*' -q --reporter mochawesome --headed",
"quick-test": "npx cypress run --spec 'cypress/e2e/test-spec/quick-test_*' -q"
"quick-test": "npx cypress run --spec 'cypress/e2e/quick*' -q"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@smartbear/visualtest-cypress": "file:..",
"cypress": "^13.4.0",
"cypress": "^13.6.0",
"mochawesome": "^7.1.3",
"mochawesome-merge": "^4.3.0"
}
Expand Down

0 comments on commit 7ced5bc

Please sign in to comment.