mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 19:03:30 -05:00
cleanup
This commit is contained in:
@@ -11,11 +11,6 @@ def login_for_end_to_end_testing(browser):
|
||||
page = context.new_page()
|
||||
page.goto(f"{E2E_TEST_URI}/sign-in")
|
||||
|
||||
# sign_in_button = page.get_by_role("link", name="Sign in")
|
||||
|
||||
# Test trying to sign in.
|
||||
# sign_in_button.click()
|
||||
|
||||
# Wait for the next page to fully load.
|
||||
page.wait_for_load_state("domcontentloaded")
|
||||
# Save storage state into the file.
|
||||
@@ -27,9 +22,6 @@ def login_for_end_to_end_testing(browser):
|
||||
|
||||
@pytest.fixture
|
||||
def end_to_end_authenticated_context(browser):
|
||||
# Create and load a previously authenticated context for Playwright E2E
|
||||
# tests.
|
||||
# login_for_end_to_end_testing(browser)
|
||||
|
||||
auth_state_path = os.path.join(
|
||||
os.getenv("NOTIFY_E2E_AUTH_STATE_PATH"), "state.json"
|
||||
@@ -46,16 +38,6 @@ def end_to_end_context(browser):
|
||||
return context
|
||||
|
||||
|
||||
def pytest_generate_tests(metafunc):
|
||||
pass
|
||||
# os.environ["DANGEROUS_SALT"] = os.getenv("E2E_DANGEROUS_SALT")
|
||||
# os.environ["SECRET_KEY"] = os.getenv("E2E_SECRET_KEY")
|
||||
# os.environ["ADMIN_CLIENT_SECRET"] = os.getenv("E2E_ADMIN_CLIENT_SECRET")
|
||||
# os.environ["ADMIN_CLIENT_USERNAME"] = os.getenv("E2E_ADMIN_CLIENT_USERNAME")
|
||||
# os.environ["NOTIFY_ENVIRONMENT"] = os.getenv("E2E_NOTIFY_ENVIRONMENT")
|
||||
# os.environ["API_HOST_NAME"] = os.getenv("E2E_API_HOST_NAME")
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def authenticated_page(end_to_end_context):
|
||||
# Open a new page and go to the site.
|
||||
|
||||
Reference in New Issue
Block a user