-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Test script is not run after failing request #644
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I run an unauthenticated request against an endpoint requiring authentication, so I get a 401 response. In the test script, I want to test for that response:
pw.expect(pw.response.status).toBe(401);
But the test script is not executed, as it seems.
Edit:
Steps to reproduce:
- Put
https://api-staging.fashiontale.de/protected/addressas URL - Click 'Add test script' and uncomment the example code
- Click 'Send'.
- 401 response is shown, but nothing happens in regards of the test.
Expected behaviour: Show that the test failed. (As 'variable' !== 'value')
System: Chome 80 installed PWA with browser extension.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working