add note
This commit is contained in:
parent
a26d5f2e84
commit
35908ddc00
1 changed files with 3 additions and 0 deletions
|
|
@ -21,6 +21,9 @@ expect.set_options(timeout=TIMEOUT)
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def context(context: BrowserContext) -> BrowserContext:
|
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_default_timeout(TIMEOUT)
|
||||||
context.set_extra_http_headers(LOCALE)
|
context.set_extra_http_headers(LOCALE)
|
||||||
return context
|
return context
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue