mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 17:28:24 -04:00
add existing template case
This commit is contained in:
@@ -132,6 +132,7 @@ def handle_no_existing_template_case(page):
|
|||||||
use_this_template_button = page.get_by_text("Use this template")
|
use_this_template_button = page.get_by_text("Use this template")
|
||||||
expect(use_this_template_button).to_be_visible()
|
expect(use_this_template_button).to_be_visible()
|
||||||
use_this_template_button.click()
|
use_this_template_button.click()
|
||||||
|
print("DID USE THIS TEMPLATE")
|
||||||
|
|
||||||
# Check to make sure that we've arrived at the next page.
|
# Check to make sure that we've arrived at the next page.
|
||||||
page.wait_for_load_state("domcontentloaded")
|
page.wait_for_load_state("domcontentloaded")
|
||||||
@@ -139,6 +140,7 @@ def handle_no_existing_template_case(page):
|
|||||||
use_my_phone_number_link = page.get_by_text("Use my phone number")
|
use_my_phone_number_link = page.get_by_text("Use my phone number")
|
||||||
expect(use_my_phone_number_link).to_be_visible()
|
expect(use_my_phone_number_link).to_be_visible()
|
||||||
use_my_phone_number_link.click()
|
use_my_phone_number_link.click()
|
||||||
|
print("DID USE MY PHONE NUBMER")
|
||||||
|
|
||||||
# Check to make sure that we've arrived at the next page.
|
# Check to make sure that we've arrived at the next page.
|
||||||
page.wait_for_load_state("domcontentloaded")
|
page.wait_for_load_state("domcontentloaded")
|
||||||
@@ -146,6 +148,7 @@ def handle_no_existing_template_case(page):
|
|||||||
preview_button = page.get_by_text("Preview")
|
preview_button = page.get_by_text("Preview")
|
||||||
expect(preview_button).to_be_visible()
|
expect(preview_button).to_be_visible()
|
||||||
preview_button.click()
|
preview_button.click()
|
||||||
|
print("DID PREVIEW")
|
||||||
|
|
||||||
# Check to make sure that we've arrived at the next page.
|
# Check to make sure that we've arrived at the next page.
|
||||||
page.wait_for_load_state("domcontentloaded")
|
page.wait_for_load_state("domcontentloaded")
|
||||||
@@ -153,10 +156,13 @@ def handle_no_existing_template_case(page):
|
|||||||
send_button = page.get_by_role("button", name="Send")
|
send_button = page.get_by_role("button", name="Send")
|
||||||
expect(send_button).to_be_visible()
|
expect(send_button).to_be_visible()
|
||||||
send_button.click()
|
send_button.click()
|
||||||
|
print("DID SEND")
|
||||||
|
|
||||||
# Check to make sure that we've arrived at the next page.
|
# Check to make sure that we've arrived at the next page.
|
||||||
page.wait_for_load_state("domcontentloaded")
|
page.wait_for_load_state("domcontentloaded")
|
||||||
|
|
||||||
|
print(f"PAGE!!! {page}")
|
||||||
|
|
||||||
dashboard_button = page.get_by_text("Dashboard")
|
dashboard_button = page.get_by_text("Dashboard")
|
||||||
expect(dashboard_button).to_be_visible()
|
expect(dashboard_button).to_be_visible()
|
||||||
dashboard_button.click()
|
dashboard_button.click()
|
||||||
|
|||||||
Reference in New Issue
Block a user