codeceptjs-cucumber
Advanced tools
Comparing version
@@ -9,5 +9,5 @@ const { I } = inject(); | ||
search(searchFor) { | ||
I.fillField(this.locators.searchBox, searchFor); | ||
I.fillField(I.grabCss(this.locators.searchBox), searchFor); | ||
I.pressKey('Enter'); | ||
} | ||
}; |
@@ -11,12 +11,12 @@ const { I } = inject(); | ||
async grabHrefForResult() { | ||
return await I.grabAttributeFrom(this.locators.resultLink, 'href'); | ||
return await I.grabAttributeFrom(I.grabCss(this.locators.resultLink), 'href'); | ||
}, | ||
async grabDescription() { | ||
return await I.grabTextFrom(this.locators.description); | ||
return await I.grabTextFrom(I.grabCss(this.locators.description)); | ||
}, | ||
async grabLicenseInfo() { | ||
return await I.grabTextFrom(this.locators.licenseInfo); | ||
return await I.grabTextFrom(I.grabCss(this.locators.licenseInfo)); | ||
} | ||
}; |
@@ -5,2 +5,3 @@ let debug = require('debug')('acceptance:config'); | ||
let codeceptJsSauce = require('codeceptjs-saucelabs'); | ||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; | ||
@@ -10,10 +11,18 @@ const DEFAULT_HOST = 'https://github.com'; | ||
const PAGES_PATH = RELATIVE_PATH + 'pages/'; | ||
const STEPS_PATH = RELATIVE_PATH + 'step_definitions/'; | ||
const STEPS_PATH = RELATIVE_PATH + 'steps/'; | ||
const HOST = process.env.HOST || DEFAULT_HOST; | ||
const HOST = process.env.HOST | ||
? process.env.HOST | ||
: DEFAULT_HOST; | ||
// replace sauce_username & sauce_key with your SauceLabs Account | ||
const SAUCE_USERNAME = process.env.SAUCE_USERNAME ? process.env.SAUCE_USERNAME : '<sauce_username>'; | ||
const SAUCE_KEY = process.env.SAUCE_KEY ? process.env.SAUCE_KEY : '<sauce_key>'; | ||
let conf = { | ||
output: RELATIVE_PATH + 'report', | ||
cleanup: true, | ||
coloredLogs: true, | ||
dev: { | ||
host: HOST | ||
}, | ||
helpers: { | ||
@@ -23,2 +32,5 @@ WebDriver: { | ||
}, | ||
Faker: { | ||
require: RELATIVE_PATH + 'helpers/faker.helper.js' | ||
}, | ||
REST: {} | ||
@@ -30,6 +42,7 @@ }, | ||
STEPS_PATH + 'search/github.steps.js', | ||
STEPS_PATH + 'hooks.js' | ||
STEPS_PATH + 'hooks/hooks.js' | ||
] | ||
}, | ||
include: { | ||
I: RELATIVE_PATH + 'helpers/custom.methods.js', | ||
ghHomePage: PAGES_PATH + 'github/gh-home.page.js', | ||
@@ -41,2 +54,2 @@ ghSearchPage: PAGES_PATH + 'github/gh-search.page.js' | ||
exports.config = merge(merge(conf, codeceptJsShared.conf), codeceptJsSauce.conf); | ||
exports.config = merge(merge(conf, codeceptJsShared.conf), codeceptJsSauce.conf(SAUCE_USERNAME, SAUCE_KEY)); |
{ | ||
"name": "codeceptjs-cucumber", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "CodeceptJs Cucumber ", | ||
@@ -24,4 +24,4 @@ "scripts": { | ||
"allure-commandline": "^2.9.0", | ||
"codeceptjs": "^2.1.4", | ||
"codeceptjs-saucelabs": "^1.0.7", | ||
"codeceptjs": "^2.2.0", | ||
"codeceptjs-saucelabs": "^1.0.8", | ||
"codeceptjs-selenium": "^1.0.2", | ||
@@ -38,3 +38,3 @@ "debug": "^4.1.1", | ||
"license": "MIT", | ||
"gitHead": "05fecde5dffdb3a15343a3363df4b48f40766f1e" | ||
"gitHead": "a53743e937b2b1f39d5c63822fcf4dc4cc1b76fb" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
4706577
30.74%154
9.22%119
6.25%9
200%