[wdspec] Cookie tests for WebDriver classic can leave set cookies behind causing failures in later tests
Categories
(Remote Protocol :: Marionette, defect, P3)
Tracking
(firefox145 fixed)
| Tracking | Status | |
|---|---|---|
| firefox145 | --- | fixed |
People
(Reporter: whimboo, Assigned: khalid.alhaddad98, Mentored)
Details
(Whiteboard: [webdriver:m18][webdriver:external][lang=py], [wptsync upstream])
Attachments
(1 file)
When doing the review for https://phabricator.services.mozilla.com/D255275 I noticed that the cookie tests like in add_cookie/add.py do not clean-up the set cookie at the end. The only reason why it currently works and doesn't cause side-effects is that for this test file the last tests at the end of the file are invalid scenarios which clean-up the cookie before and then checking that a cookie cannot be set.
So any situation like the following ones can break tests as run later on:
- If the invalid tests are failing early and the cookies are not deleted
- If a new test gets added at the end of the file
We should clean-up all the cookies at the end.
| Reporter | ||
Updated•3 months ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Updated•1 month ago
|
| Assignee | ||
Comment 2•1 month ago
|
||
Hi, I cleared the cookies before and after each test, is that fine? Or did you want me to clear the cookies only in the end of the test file?
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Updated•26 days ago
|
| Reporter | ||
Comment 5•25 days ago
|
||
Khalid, thanks again for your contribution! If you have interest to do more please let us know or try to find another bug yourself. You can contact us here or via the #webdriver Matrix channel.
Description
•