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

Tell us what’s happening:
Describe your issue in detail here.
My tests are passing in the console, but I receive the below time out error when I try to submit my challenge-

// running tests All tests should pass. (Test timed out) You should assert that the headless browser request succeeded. (Test timed out) You should assert that the text inside the element

span#name

is

'Cristoforo'

. (Test timed out) You should assert that the text inside the element

span#surname

is

'Colombo'

. (Test timed out) You should assert that the element

span#dates

exist and its count is 1. (Test timed out) // tests completed

Your project link(s)
https://boilerplate-mochachai.apoorva-laxmika.repl.co

solution: boilerplate-mochachai - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36

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

How do I get rid of the timeout error?

Perhaps look at this old post I wrote:

If Replit is causing the tests to time out after initial testing, adding the below might help:

after(function() {
        chai.request(server).get('/api')
    });

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