Merge pull request #1791 from umap-project/expect-timeout
chore: try to change Playwright expect timeout
This commit is contained in:
commit
bb47299cfa
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