Open alxoldman opened 2 years ago
@alxoldman I was able to replicate this issue. Can you add "https://" to the cookies clear command and try if that fixes the issue?
pm.cookies.jar().clear("https://acx-brillium-v2.auth.us-east-2.amazoncognito.com");
Yep, it works for the attached collection. But it was only one request from the original huge collection, and I made sure that the full URL (with https://) was used there. And for the original collection, it still does not works.
Seems, something goes wrong with async actions. Because when I try to flush cookies inside in-line requests, everything works fine. But when the same code is, e.g., in Pre-request Script, the cookies are not flushed.
for the original collection, it still does not works.
@alxoldman Does this mean that adding https://
does not work for the entire collection? Or is it not possible to add https://
for each request in the collection?
Seems, something goes wrong with async actions. Because when I try to flush cookies inside in-line requests, everything works fine. But when the same code is, e.g., in Pre-request Script, the cookies are not flushed.
I'm not sure I understand. What do you mean by in-line requests? The "Manage Cookies" modal?
Is there an existing issue for this?
Describe the Issue
Cookies are not deleted programmatically via the pre-request/test script
Steps To Reproduce
Expected result: since at the end of the test script we try to delete programmatically all cookies from acx-brillium-v2.auth.us-east-2.amazoncognito.com, and this domain is whitelisted, the Cookie Manager does not contain any cookie from this domain. Actual result: on the "Manage Cookies" screen, there are three cookies from acx-brillium-v2.auth.us-east-2.amazoncognito.com
If you add such string for cookie deletion to the pre-request script of the next request, nothing changes, the cookies are not removed anyway. Cookie_bug.postman_collection.zip
Screenshots or Videos
No response
Environment Information
Additional Context?
The listing of the script: