diff --git a/pytest_abra/pytest_abra.py b/pytest_abra/pytest_abra.py index aebfdee..618d6fe 100644 --- a/pytest_abra/pytest_abra.py +++ b/pytest_abra/pytest_abra.py @@ -21,6 +21,9 @@ expect.set_options(timeout=TIMEOUT) @pytest.fixture def context(context: BrowserContext) -> BrowserContext: + # note: because this has the existing context fixture as an argument, it is ensured + # that the original fixture is called first and then overwritten by this custom one. + context.set_default_timeout(TIMEOUT) context.set_extra_http_headers(LOCALE) return context