mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-04 05:31:44 -04:00
notify-admin-761 remove basic auth
This commit is contained in:
@@ -3661,18 +3661,7 @@ def login_for_end_to_end_testing(browser):
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def end_to_end_context(browser):
|
||||
# Create a context with HTTP Authentication credentials for Playwright E2E
|
||||
# tests, if the environment variables exist.
|
||||
if os.getenv("NOTIFY_E2E_TEST_HTTP_AUTH_USER"):
|
||||
context = browser.new_context(
|
||||
http_credentials={
|
||||
"username": os.getenv("NOTIFY_E2E_TEST_HTTP_AUTH_USER"),
|
||||
"password": os.getenv("NOTIFY_E2E_TEST_HTTP_AUTH_PASSWORD"),
|
||||
}
|
||||
)
|
||||
else:
|
||||
context = browser.new_context()
|
||||
|
||||
context = browser.new_context()
|
||||
yield context
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user