mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-23 01:19:27 -04:00
increase debug
This commit is contained in:
2
Makefile
2
Makefile
@@ -88,7 +88,7 @@ dead-code: ## 60% is our aspirational goal, but currently breaks the build
|
||||
.PHONY: e2e-test
|
||||
e2e-test: export NEW_RELIC_ENVIRONMENT=test
|
||||
e2e-test: ## Run end-to-end integration tests; note that --browser webkit isn't currently working
|
||||
poetry run pytest -vv --browser chromium tests/end_to_end/test_create_new_template.py
|
||||
DEBUG=pw.api, pw:browser poetry run pytest -vv --browser chromium tests/end_to_end/test_create_new_template.py
|
||||
|
||||
.PHONY: js-lint
|
||||
js-lint: ## Run javascript linting scanners
|
||||
|
||||
@@ -11,25 +11,19 @@ E2E_TEST_URI = os.getenv("NOTIFY_E2E_TEST_URI")
|
||||
|
||||
def _setup(page):
|
||||
# Prepare for adding a new service later in the test.
|
||||
print(f"ESE_TEST_URI={E2E_TEST_URI}")
|
||||
print(f"NOTIFY_ENVIRONMENT={os.getenv('NOTIFY_ENVIRONMENT')}")
|
||||
print(f"E2E EMAIL {os.getenv('NOTIFY_E2E_TEST_EMAIL')}")
|
||||
print(f"E2E DANGEROUS SALT {os.getenv('DANGEROUS_SALT')}")
|
||||
print(f"E2E SECRET_KEY {os.getenv('SECRET_KEY')}")
|
||||
print(f"E2E ADMIN_CLIENT_SECRET {os.getenv('ADMIN_CLIENT_SECRET')}")
|
||||
print(f"E2E ADMIN_CLIENT_USERNAME {os.getenv('ADMIN_CLIENT_USERNAME')}")
|
||||
print(f"E2E API_HOST_NAME {os.getenv('API_HOST_NAME')}")
|
||||
|
||||
current_date_time = datetime.datetime.now()
|
||||
new_service_name = "E2E Federal Test Service {now} - {browser_type}".format(
|
||||
now=current_date_time.strftime("%m/%d/%Y %H:%M:%S"),
|
||||
browser_type=page.context.browser.browser_type.name,
|
||||
)
|
||||
|
||||
print(f"GOING TO {E2E_TEST_URI}/accounts")
|
||||
page.goto(f"{E2E_TEST_URI}/accounts")
|
||||
|
||||
|
||||
# Check to make sure that we've arrived at the next page.
|
||||
page.wait_for_load_state("domcontentloaded")
|
||||
print(page)
|
||||
|
||||
# Check to make sure that we've arrived at the next page.
|
||||
# Check the page title exists and matches what we expect.
|
||||
|
||||
Reference in New Issue
Block a user