Skip to content

Commit 5b37f7e

Browse files
committed
Re-enable cookie tests and skip StaleElement test that causes browser to hang
1 parent 5191481 commit 5b37f7e

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

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

-6
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,12 @@ 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')
4443
def testAddCookie(cookie, driver):
4544
driver.add_cookie(cookie)
4645
returned = driver.execute_script('return document.cookie')
4746
assert cookie['name'] in returned
4847

4948

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

5856

59-
@pytest.mark.xfail_marionette(reason='https://bugzilla.mozilla.org/show_bug.cgi?id=1407675')
6057
def testDeleteAllCookie(cookie, driver):
6158
driver.add_cookie(cookie)
6259
driver.delete_all_cookies()
6360
assert not driver.get_cookies()
6461

6562

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

7975

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

9287

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

py/test/selenium/webdriver/common/stale_reference_tests.py

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from selenium.common.exceptions import StaleElementReferenceException
2222

2323

24+
@pytest.mark.skip(reason='Stalls tests, https://bugzilla.mozilla.org/show_bug.cgi?id=1410799')
2425
def testOldPage(driver, pages):
2526
pages.load("simpleTest.html")
2627
elem = driver.find_element(by=By.ID, value="links")

0 commit comments

Comments
 (0)