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:
Yohan Boniface 2024-05-02 14:30:54 +02:00
parent 49b240a3db
commit e688ce8f57

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)