🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

codeceptjs-cucumber

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codeceptjs-cucumber - npm Package Compare versions

Comparing version

to
4.0.3

acceptance/report/2a9bb2ab-7df0-4cd1-b633-c67a73b39e5d-testsuite.xml

26

acceptance/pages/github/gh-home.page.js

@@ -1,12 +0,18 @@

const {I} = inject();
const { I } = inject();
module.exports = {
locators: {
searchBox: '.header-search-input'
},
// page class can be extended
class HomePage {
constructor() {
// page locators
this.locators = {
searchBox: '.header-search-input'
};
}
search(searchFor) {
I.fillField(I.grabCss(this.locators.searchBox), searchFor);
I.pressKey('Enter');
}
};
search(searchFor) {
I.fillField(I.grabCss(this.locators.searchBox), searchFor);
I.pressKey('Enter');
}
}
module.exports = new HomePage();

@@ -1,21 +0,29 @@

const {I} = inject();
const { I } = inject();
module.exports = {
locators: {
resultLink: 'li.repo-list-item>div>h3>a',
description: 'p.col-12.col-md-9',
licenseInfo: 'p.f6.text-gray'
},
class SearchPage {
constructor() {
// page locators
this.locators = {
resultLink: 'li.repo-list-item>div>h3>a',
description: 'p.col-12.col-md-9',
licenseInfo: 'p.f6.text-gray'
};
}
async grabHrefForResult() {
return await I.grabAttributeFrom(I.grabCss(this.locators.resultLink), 'href');
},
async grabHrefForResult() {
return await I.grabAttributeFrom(
I.grabCss(this.locators.resultLink),
'href'
);
}
async grabDescription() {
return await I.grabTextFrom(I.grabCss(this.locators.description));
},
async grabDescription() {
return await I.grabTextFrom(I.grabCss(this.locators.description));
}
async grabLicenseInfo() {
return await I.grabTextFrom(I.grabCss(this.locators.licenseInfo));
}
};
async grabLicenseInfo() {
return await I.grabTextFrom(I.grabCss(this.locators.licenseInfo));
}
}
module.exports = new SearchPage();

@@ -108,4 +108,5 @@ #!/usr/bin/env node

choices: ['WebDriver', 'Playwright'],
message: 'Select your Driver'
message: 'Choose Default Driver. Framework comes with both WebDriver and Playwright drivers and you can run your tests on any driver through `DRIVER` env param, e.g. DRIVER=playwright yarn acceptance or DRIVER=webdriver yarn acceptance. For now, you can choose your default driver.'
}
]);

@@ -266,3 +267,3 @@ };

shell.exec(
'yarn add codeceptjs-saucelabs@latest codeceptjs-shared@latest webdriverio@^5.2.2 @wdio/selenium-standalone-service@5.16.10 allure-commandline codeceptjs playwright debug faker protractor rimraf should deepmerge soft-assert -D'
'yarn add codeceptjs-saucelabs@latest codeceptjs-shared@latest allure-commandline codeceptjs debug faker protractor rimraf should deepmerge soft-assert -D'
).code !== 0

@@ -269,0 +270,0 @@ ) {

{
"name": "codeceptjs-cucumber",
"version": "4.0.2",
"version": "4.0.3",
"description": "CodeceptJs Cucumber E2E Framework",

@@ -37,3 +37,3 @@ "scripts": {

"codeceptjs-saucelabs": "^4.0.1",
"codeceptjs-shared": "^4.0.2",
"codeceptjs-shared": "^4.0.3",
"debug": "^4.1.1",

@@ -56,3 +56,3 @@ "deepmerge": "^4.0.0",

},
"gitHead": "fc852a84fd3969ff0905ceb60a5780f04d7d6462"
"gitHead": "cd9574d8ba7d6ba486c9449e68220e687fc1e336"
}