mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-04 22:38:25 -04:00
Merge branch 'main' into 2579-updating-homepage-content-at-end-of-may
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
# import datetime
|
||||
import datetime
|
||||
import os
|
||||
import re
|
||||
import uuid
|
||||
|
||||
# import pytest
|
||||
from playwright.sync_api import expect
|
||||
|
||||
from tests.end_to_end.conftest import check_axe_report
|
||||
@@ -10,7 +12,7 @@ from tests.end_to_end.conftest import check_axe_report
|
||||
E2E_TEST_URI = os.getenv("NOTIFY_E2E_TEST_URI")
|
||||
|
||||
|
||||
async def create_new_template(page):
|
||||
def create_new_template(page):
|
||||
|
||||
current_service_link = page.get_by_text("Current service")
|
||||
expect(current_service_link).to_be_visible()
|
||||
@@ -82,8 +84,6 @@ async def create_new_template(page):
|
||||
page.wait_for_load_state("domcontentloaded")
|
||||
|
||||
preview_button = page.get_by_text("Preview")
|
||||
assert await preview_button.evaluate("el => el.tagName") == "BUTTON"
|
||||
|
||||
expect(preview_button).to_be_visible()
|
||||
preview_button.click()
|
||||
|
||||
@@ -94,7 +94,7 @@ async def create_new_template(page):
|
||||
# We are not going to send the message for this test, we just want to confirm
|
||||
# that the template has been created and we are now seeing the message from the
|
||||
# template in the preview.
|
||||
assert "Test message for e2e test" in page.content()
|
||||
# assert "Test message for e2e test" in page.content()
|
||||
|
||||
|
||||
def test_create_new_template(end_to_end_context):
|
||||
|
||||
Reference in New Issue
Block a user