Merge pull request #1791 from umap-project/expect-timeout

chore: try to change Playwright expect timeout
This commit is contained in:
Yohan Boniface 2024-05-02 15:11:48 +02:00 committed by GitHub
commit bb47299cfa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,14 +1,15 @@
import os
import pytest
from playwright.sync_api import expect
@pytest.fixture(autouse=True)
def set_timeout(context):
context.set_default_timeout(int(os.environ.get("PLAYWRIGHT_TIMEOUT", 7500)))
context.set_default_navigation_timeout(
int(os.environ.get("PLAYWRIGHT_TIMEOUT", 7500))
)
timeout = int(os.environ.get("PLAYWRIGHT_TIMEOUT", 7500))
context.set_default_timeout(timeout)
context.set_default_navigation_timeout(timeout)
expect.set_options(timeout=timeout)
@pytest.fixture(autouse=True)