mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-06 03:13:42 -05:00
flake8 fixes
This commit is contained in:
@@ -31,7 +31,6 @@ pyexcel-xlsx = "==0.6.0"
|
||||
openpyxl = "==3.0.10"
|
||||
pyproj = "==3.6.0"
|
||||
python-dotenv = "==1.0.0"
|
||||
poetry-dotenv-plugin = "==0.2.0"
|
||||
pytz = "==2023.3"
|
||||
rtreelib = "==0.2.0"
|
||||
werkzeug = "~=2.3"
|
||||
|
||||
@@ -21,7 +21,6 @@ def _bypass_sign_in(end_to_end_context):
|
||||
|
||||
|
||||
def test_accounts_page(end_to_end_context):
|
||||
|
||||
page = _bypass_sign_in(end_to_end_context)
|
||||
|
||||
# Check the page title exists and matches what we expect.
|
||||
@@ -33,15 +32,14 @@ def test_add_new_service_workflow(end_to_end_context):
|
||||
page = end_to_end_context.new_page()
|
||||
page.goto(os.getenv("NOTIFY_E2E_TEST_URI"))
|
||||
|
||||
#sign_in_button = page.get_by_role("link", name="Sign in")
|
||||
|
||||
# sign_in_button = page.get_by_role("link", name="Sign in")
|
||||
#
|
||||
# Test trying to sign in. Because we are loading the email and password
|
||||
#sign_in_button.click()
|
||||
|
||||
# sign_in_button.click()
|
||||
#
|
||||
# Wait for the next page to fully load.
|
||||
page.wait_for_load_state("domcontentloaded")
|
||||
|
||||
|
||||
# Prepare for adding a new service later in the test.
|
||||
current_date_time = datetime.datetime.now()
|
||||
new_service_name = "E2E Federal Test Service {now} - {browser_type}".format(
|
||||
@@ -103,7 +101,6 @@ def test_add_new_service_workflow(end_to_end_context):
|
||||
|
||||
# Fill in the form.
|
||||
service_name_input.fill(new_service_name)
|
||||
print(f"page before federal radio_button click {page}")
|
||||
expect(federal_radio_button).to_be_enabled()
|
||||
# Trying to click directly on the radio button resulted in a "not in viewport error" and this is the
|
||||
# suggested workaround. Googling, the reason seems to be that there might be some (invisible?) css positioned
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import os
|
||||
import re
|
||||
|
||||
import pytest
|
||||
from playwright.sync_api import expect
|
||||
|
||||
|
||||
@@ -22,7 +21,6 @@ def test_landing_page(browser):
|
||||
)
|
||||
sign_in_button = page.get_by_role("link", name="Sign in")
|
||||
benefits_studio_email = page.get_by_role("link", name="tts-benefits-studio@gsa.gov")
|
||||
print(page)
|
||||
|
||||
# Check to make sure the elements are visible.
|
||||
expect(main_header).to_be_visible()
|
||||
|
||||
Reference in New Issue
Block a user