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

Tell us what’s happening:
Describe your issue in detail here:

My boiler code keeps getting timed out when I tested it on the FCC website. I’ve already cloned the boiler code 3 times now and still getting the same Test Timed Out error when submitting the solution Link. Can anyone help me determine what’s wrong here?


Here is the code that I created for the challenge:

test('Send {surname: "da Verrazzano"}', function(done) {
      chai
        .request(server)
        .put('/travellers')
        .send({ surname: 'da Verrazzano' })
        .end(function(err, res) {
          assert.equal(res.status, 200, 'response status should be 200');
          assert.equal(res.type, 'application/json', 'Response should be json');
          assert.equal(res.body.name, 'Giovanni');
          assert.equal(res.body.surname, 'da Verrazzano');
          done();
        });
    });

The odd thing is that when I run the code on Replit it didn’t cross the 5000 ms responds time at all. Please help

Your project link(s)

solution: https://boilerplate-mochachai-2.anthony-suryaja.repl.co

Your browser information:

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

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

Link to the challenge:

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