From 35908ddc00153bf4dafac26ebbd878adf5b1a4ef Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 6 Dec 2023 23:00:20 +0100 Subject: [PATCH] add note --- pytest_abra/pytest_abra.py | 3 +++ 1 file changed, 3 insertions(+) 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