Valentino Artisan Coffee House Assignment #2 failing tests

Hi! I’m trying to complete this assignment but although I followed the instructions (I copied the subfolders with the requests in it) the only test that passes is “status > Get API status: contains status code test” all the remaining ones fail because of an assertion error: products > Get all products: contains status code test | AssertionError: check script: expected ‘pm.test(“Status code is 200”, functio…’ to include ‘pm.expect(pm.response.code).to.eql(20…’

All the tests pass after running the API requests folder.

Why does the first test pass and the other ones don’t? Here’s my Assignment #2 collection.

I’ll be grateful for any help.

Your collection is private! Can you make it public?

@michaelderekjones I changed it to public. Can you check know?

Spelling…

The “verify your work” request\tests are looking for.

(pm.response.code).to.eql(200);

Where you have…

(pm.response.code).to.equal(200);

1 Like

You’ve got an eye for detail, indeed. :sweat_smile:

Thank you very much!

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