Skip to content
Advertisement

Tag: cucumber

Verify the checkbox is checked in Cypress

I want to verify the checkbox is checked. This is the HTML for the checkbox the js for it: Then on step definition: strangely Cypress shows that the expected value was true but the value was true Answer You have to change true to ‘true’. The true is a string.

How to use Puppeteer and Headless Chrome with Cucumber-js

I am trying to do BDD with cucumber-js and drive the browser testing with Headless Chrome and puppeteer. Using the documentation from cucumber node example and headless chrome, I get the following errors, the entire code base is avaliable here: github repo. Errors: TypeError: this.browser.newPage is not a function TypeError: this.browser.close is not a function // features/support/world.js // features/step_definitions/hooks.js //

Advertisement