notify-admin-761 remove basic auth

This commit is contained in:
Kenneth Kehl
2023-09-14 07:47:38 -07:00
parent 5e1a224c29
commit 0218ffd9ba
10 changed files with 2 additions and 42 deletions

View File

@@ -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