tim-yao / cucumber-nightwatch Goto Github PK
View Code? Open in Web Editor NEWA small library to enable us to use latest nightwatch.js(v3) in cucumber.js(v9)
License: MIT License
A small library to enable us to use latest nightwatch.js(v3) in cucumber.js(v9)
License: MIT License
The below command won't fail cucumber tests when it fails.
// These won't fail
await this.browser.waitForElementVisible(
'#not-existing-element',
1000,
0,
true,
function (result) {
console.log('result', result)
}
)
await this.browser.waitForElementPresent(
'css selector',
'#not-existing-element'
)
await this.browser.click('#not-existing-element')
await this.browser.ensure.elementIsVisible('#not-existing-element')
Below works.
await this.browser!.expect.element('#not-existing-element').to.be.present;
await this.browser!.expect.element('#not-existing-element').to.be.visible;
await this.browser!.assert.visible('#not-existing-element')
The below examples will fail the test step even though abortOnFailure is false.
await this.browser.waitForElementPresent('.not-existing-element', 100, false)
await this.browser.waitForElementPresent({
selector: '.not-existing-element',
retryInterval: 1000,
abortOnFailure: false
});
This is also related to the bugs in Nightwatch.js programmatic API. I have reported it to the Nightwatch team to look at nightwatchjs/nightwatch#3499
await browser.click('#not-existing-element')
won't fail the step.
This is also a Nightwatch programmatic API issue. Maybe nightwatchjs/nightwatch#3499 will fix this.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@cucumber/pretty-formatter
, @tsconfig/node18
, eslint
, typescript
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
).github/workflows/npm-publish.yml
actions/checkout v4
actions/setup-node v4
.github/workflows/test.yml
actions/checkout v4
actions/setup-node v4
actions/upload-artifact v3
mikepenz/action-junit-report v4
package.json
consola ^3.1.0
@cucumber/pretty-formatter ^1.0.0
@tsconfig/node18 ^18.2.0
@typescript-eslint/eslint-plugin ^6.0.0
@typescript-eslint/parser ^6.0.0
eslint ^8.39.0
eslint-config-prettier ^9.0.0
prettier ^3.0.0
typescript ^5.0.4
@cucumber/cucumber >=9.0.0
nightwatch ^3.1.0
node >=18.0.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.