Hi There, I’ve been struggling to get my build/ tests to work for the foundation course- and I’m hitting my head against a brick wall.
You’ll see both my build and my Test results are big crosses.
Please help me see what is going wrong!
Thanks in advance you wonderful people.
2 Likes
Hi @kelly.kenyon
Try replacing the sleep 10
command with this:
curl --head -X GET --retry 60 --retry-connrefused --retry-delay 1 http://localhost:3000
This code will send a request every second for sixty seconds to see if the app is up before moving on. Once the app is up this command will get a positive response and then allow you to run your E2E test.
See how you get on with it.
2 Likes
We appear to have a passing test!
It looks like this now, which I think is correct?
1 Like
Looks good to me! Well done
1 Like