Quality Assurance and Testing with Chai - Run Functional Tests Using a Headless Browser

Tell us what’s happening:
It shows failure everytime.

Your project link(s)

solution: boilerplate-mochachai (1) - Replit

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0

Challenge: Quality Assurance and Testing with Chai - Run Functional Tests Using a Headless Browser

Link to the challenge:

Not sure if you have forked code that is using an old boilerplate or if you remove some code but you need to have .keepOpen() after each .request(server)


 browser
   .fill('surname', 'Colombo')
 browser.pressButton('submit', function() {

This isn’t the correct syntax. If you look at the example in the challenge you can see browser.fill returns a promise that is used with .then()

You may also have to lower the timeout back to the original 5000ms

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.