mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 08:29:49 -04:00
Merge pull request #1345 from GSA/adjust-e2e-test-fixtures
Adjust E2E test fixtures
This commit is contained in:
@@ -68,7 +68,7 @@ def login_for_end_to_end_testing(browser):
|
|||||||
context.storage_state(path=auth_state_path)
|
context.storage_state(path=auth_state_path)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture()
|
||||||
def end_to_end_authenticated_context(browser):
|
def end_to_end_authenticated_context(browser):
|
||||||
# Create and load a previously authenticated context for Playwright E2E
|
# Create and load a previously authenticated context for Playwright E2E
|
||||||
# tests.
|
# tests.
|
||||||
@@ -82,13 +82,13 @@ def end_to_end_authenticated_context(browser):
|
|||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture()
|
||||||
def end_to_end_context(browser):
|
def end_to_end_context(browser):
|
||||||
context = browser.new_context()
|
context = browser.new_context()
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture()
|
||||||
def authenticated_page(end_to_end_context):
|
def authenticated_page(end_to_end_context):
|
||||||
# Open a new page and go to the site.
|
# Open a new page and go to the site.
|
||||||
page = end_to_end_context.new_page()
|
page = end_to_end_context.new_page()
|
||||||
|
|||||||
Reference in New Issue
Block a user