Skip to content

Commit 1c2a390

Browse files
committed
xfail tests experiencing Firefox cookie bug
1 parent e9125c7 commit 1c2a390

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

py/test/selenium/webdriver/common/cookie_tests.py

+6
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ def pages(request, driver, pages):
4040
driver.delete_all_cookies()
4141

4242

43+
@pytest.mark.xfail_marionette(reason='https://bugzilla.mozilla.org/show_bug.cgi?id=1407675')
4344
def testAddCookie(cookie, driver):
4445
driver.add_cookie(cookie)
4546
returned = driver.execute_script('return document.cookie')
4647
assert cookie['name'] in returned
4748

4849

50+
@pytest.mark.xfail_marionette(reason='https://bugzilla.mozilla.org/show_bug.cgi?id=1407675')
4951
@pytest.mark.xfail_ie
5052
def testAddingACookieThatExpiredInThePast(cookie, driver):
5153
expired = cookie.copy()
@@ -54,12 +56,14 @@ def testAddingACookieThatExpiredInThePast(cookie, driver):
5456
assert 0 == len(driver.get_cookies())
5557

5658

59+
@pytest.mark.xfail_marionette(reason='https://bugzilla.mozilla.org/show_bug.cgi?id=1407675')
5760
def testDeleteAllCookie(cookie, driver):
5861
driver.add_cookie(cookie)
5962
driver.delete_all_cookies()
6063
assert not driver.get_cookies()
6164

6265

66+
@pytest.mark.xfail_marionette(reason='https://bugzilla.mozilla.org/show_bug.cgi?id=1407675')
6367
def testDeleteCookie(cookie, driver):
6468
driver.add_cookie(cookie)
6569
driver.delete_cookie('foo')
@@ -73,6 +77,7 @@ def testShouldGetCookieByName(driver):
7377
assert 'set' == cookie['value']
7478

7579

80+
@pytest.mark.xfail_marionette(reason='https://bugzilla.mozilla.org/show_bug.cgi?id=1407675')
7681
def testGetAllCookies(cookie, driver, pages, webserver):
7782
cookies = driver.get_cookies()
7883
count = len(cookies)
@@ -85,6 +90,7 @@ def testGetAllCookies(cookie, driver, pages, webserver):
8590
assert count + 2 == len(driver.get_cookies())
8691

8792

93+
@pytest.mark.xfail_marionette(reason='https://bugzilla.mozilla.org/show_bug.cgi?id=1407675')
8894
def testShouldNotDeleteCookiesWithASimilarName(cookie, driver, webserver):
8995
cookie2 = cookie.copy()
9096
cookie2['name'] = '{}x'.format(cookie['name'])

0 commit comments

Comments
 (0)