reenable e2e tests

This commit is contained in:
Kenneth Kehl
2024-09-09 12:50:16 -07:00
parent 6223341826
commit b1f1005441
4 changed files with 17 additions and 6 deletions

View File

@@ -70,9 +70,12 @@ def test_add_new_service_workflow(authenticated_page, end_to_end_context):
# Check to make sure that we've arrived at the next page.
page.wait_for_load_state("domcontentloaded")
# TODO this fails on staging due to duplicate results on 'get_by_text'
# Check for the service name title and heading.
service_heading = page.get_by_text(new_service_name, exact=True)
expect(service_heading).to_be_visible()
# service_heading = page.get_by_text(new_service_name, exact=True)
# expect(service_heading).to_be_visible()
expect(page).to_have_title(re.compile(new_service_name))
page.click("text='Settings'")

View File

@@ -158,10 +158,11 @@ def test_create_new_template(end_to_end_context):
# Check to make sure that we've arrived at the next page.
page.wait_for_load_state("domcontentloaded")
# TODO this fails on staging due to duplicate results on 'get_by_text'
# Check for the service name title and heading.
# service_heading = page.get_by_text(new_service_name, exact=True)
# expect(service_heading).to_be_visible()
expect(page).to_have_title(re.compile(new_service_name))
create_new_template(page)

View File

@@ -68,9 +68,13 @@ def _setup(page):
# Check to make sure that we've arrived at the next page.
page.wait_for_load_state("domcontentloaded")
# TODO this fails on staging due to duplicate results on 'get_by_text'
# Check for the service name title and heading.
service_heading = page.get_by_text(new_service_name, exact=True)
expect(service_heading).to_be_visible()
# service_heading = page.get_by_text(new_service_name, exact=True)
# expect(service_heading).to_be_visible()
expect(page).to_have_title(re.compile(new_service_name))
return new_service_name

View File

@@ -69,10 +69,13 @@ def _setup(page):
# Check to make sure that we've arrived at the next page.
page.wait_for_load_state("domcontentloaded")
# TODO this fails on staging due to duplicate results on 'get_by_text'
# Check for the service name title and heading.
service_heading = page.get_by_text(new_service_name, exact=True)
expect(service_heading).to_be_visible()
expect(page).to_have_title(re.compile(new_service_name))
return new_service_name