try again

This commit is contained in:
Kenneth Kehl
2024-08-27 14:22:07 -07:00
341 changed files with 59646 additions and 6447 deletions

View File

@@ -68,7 +68,7 @@ def login_for_end_to_end_testing(browser):
context.storage_state(path=auth_state_path)
@pytest.fixture()
@pytest.fixture
def end_to_end_authenticated_context(browser):
# Create and load a previously authenticated context for Playwright E2E
# tests.
@@ -83,24 +83,22 @@ def end_to_end_authenticated_context(browser):
return context
@pytest.fixture()
@pytest.fixture
def end_to_end_context(browser):
context = browser.new_context()
return context
def pytest_generate_tests(metafunc):
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')
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()
@pytest.fixture
def authenticated_page(end_to_end_context):
# Open a new page and go to the site.
page = end_to_end_context.new_page()