Bug 1407695 - Clear all cookies from session before running test; r=ato
☠☠ backed out by ee9ac079ab0e ☠ ☠
authorØyvind Strømmen <insula.ventus@gmail.com>
Tue, 24 Oct 2017 08:05:54 +0200
changeset 685755 f5b8efb37541dc9e6bb764734522d456e10a4d71
parent 685754 6960879cb1e3b6864a922b2990191d749f6bf6fd
child 685756 d5d1935726bbca66eba72670ffc461d444455519
push id86016
push userkgupta@mozilla.com
push dateWed, 25 Oct 2017 01:53:44 +0000
reviewersato
bugs1407695
milestone58.0a1
Bug 1407695 - Clear all cookies from session before running test; r=ato MozReview-Commit-ID: A7plYkYzvek
testing/web-platform/tests/webdriver/tests/cookies/get_named_cookie.py
--- a/testing/web-platform/tests/webdriver/tests/cookies/get_named_cookie.py
+++ b/testing/web-platform/tests/webdriver/tests/cookies/get_named_cookie.py
@@ -1,13 +1,14 @@
 from tests.support.inline import inline
 from tests.support.fixtures import clear_all_cookies
 
 def test_get_named_cookie(session, url):
     session.url = url("/common/blank.html")
+    clear_all_cookies(session)
     session.execute_script("document.cookie = 'foo=bar'")
 
     result = session.transport.send("GET", "session/%s/cookie/foo" % session.session_id)
     assert result.status == 200
     assert isinstance(result.body["value"], dict)
 
     # table for cookie conversion
     # https://w3c.github.io/webdriver/webdriver-spec.html#dfn-table-for-cookie-conversion