chore: try to change Playwright expect timeout
Some tests randomly fail in the CI because of timeout a bit short.
This commit is contained in:
parent
49b240a3db
commit
e688ce8f57
1 changed files with 5 additions and 4 deletions
|
@ -1,14 +1,15 @@
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
from playwright.sync_api import expect
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def set_timeout(context):
|
def set_timeout(context):
|
||||||
context.set_default_timeout(int(os.environ.get("PLAYWRIGHT_TIMEOUT", 7500)))
|
timeout = int(os.environ.get("PLAYWRIGHT_TIMEOUT", 7500))
|
||||||
context.set_default_navigation_timeout(
|
context.set_default_timeout(timeout)
|
||||||
int(os.environ.get("PLAYWRIGHT_TIMEOUT", 7500))
|
context.set_default_navigation_timeout(timeout)
|
||||||
)
|
expect.set_options(timeout=timeout)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
|
|
Loading…
Reference in a new issue