Skip to content

Commit 088c42e

Browse files
authored
tests: mark test as flaky (#248)
1 parent c20d661 commit 088c42e

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Diff for: local-requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ pytest-cov==2.10.1
44
pytest-sugar==0.9.4
55
pytest-xdist==2.1.0
66
pytest-timeout==1.4.2
7+
flaky==3.7.0
78
pixelmatch==0.2.1
89
Pillow==8.0.0
910
mypy==0.782

Diff for: tests/async/test_defaultbrowsercontext.py

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import os
1717

1818
import pytest
19+
from flaky import flaky
1920

2021
from playwright.helper import Error
2122

@@ -279,6 +280,7 @@ async def test_should_accept_user_data_dir(server, tmpdir, launch_persistent):
279280
assert len(os.listdir(tmpdir)) > 0
280281

281282

283+
@flaky
282284
async def test_should_restore_state_from_userDataDir(
283285
browser_type, launch_arguments, server, tmp_path_factory
284286
):

Diff for: tests/async/test_headful.py

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import asyncio
1717

1818
import pytest
19+
from flaky import flaky
1920

2021

2122
async def test_should_have_default_url_when_launching_browser(
@@ -179,6 +180,7 @@ async def test_should_not_override_viewport_size_when_passed_null(
179180
await browser.close()
180181

181182

183+
@flaky
182184
async def test_page_bring_to_front_should_work(browser_type, launch_arguments):
183185
browser = await browser_type.launch(**{**launch_arguments, "headless": False})
184186
page1 = await browser.newPage()

0 commit comments

Comments
 (0)