mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 18:37:33 -04:00
e2e
This commit is contained in:
Generated
+29
-216
File diff suppressed because it is too large
Load Diff
@@ -179,38 +179,38 @@ def handle_no_existing_template_case(page):
|
|||||||
# TODO: The failure appears to currently be an issue with retrieving info
|
# TODO: The failure appears to currently be an issue with retrieving info
|
||||||
# from the job cache, and the API throws an error, resulting in the
|
# from the job cache, and the API throws an error, resulting in the
|
||||||
# error page "Sorry, we can't deliver what you asked for right now."
|
# error page "Sorry, we can't deliver what you asked for right now."
|
||||||
# activity_button = page.get_by_text("Activity")
|
activity_button = page.get_by_text("Activity")
|
||||||
# expect(activity_button).to_be_visible()
|
expect(activity_button).to_be_visible()
|
||||||
# activity_button.click()
|
activity_button.click()
|
||||||
|
|
||||||
# # 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")
|
||||||
# check_axe_report(page)
|
check_axe_report(page)
|
||||||
# download_link = page.get_by_text("Download all data last 7 days (CSV)")
|
download_link = page.get_by_text("Download all data last 7 days (CSV)")
|
||||||
# expect(download_link).to_be_visible()
|
expect(download_link).to_be_visible()
|
||||||
|
|
||||||
# # Start waiting for the download
|
# Start waiting for the download
|
||||||
# with page.expect_download() as download_info:
|
with page.expect_download() as download_info:
|
||||||
# download_link.click()
|
download_link.click()
|
||||||
# download = download_info.value
|
download = download_info.value
|
||||||
# download.save_as("download_test_file")
|
download.save_as("download_test_file")
|
||||||
# f = open("download_test_file", "r")
|
f = open("download_test_file", "r")
|
||||||
|
|
||||||
# content = f.read()
|
content = f.read()
|
||||||
# f.close()
|
f.close()
|
||||||
# # We don't want to wait 5 minutes to get a response from AWS about the message we sent
|
# We don't want to wait 5 minutes to get a response from AWS about the message we sent
|
||||||
# # So we are using this invalid phone number the e2e_test_user signed up with (12025555555)
|
# So we are using this invalid phone number the e2e_test_user signed up with (12025555555)
|
||||||
# # to shortcircuit the sending process. Our phone number validator will insta-fail the
|
# to shortcircuit the sending process. Our phone number validator will insta-fail the
|
||||||
# # message and it won't be sent, but the report will still be generated, which is all
|
# message and it won't be sent, but the report will still be generated, which is all
|
||||||
# # we care about here.
|
# we care about here.
|
||||||
# assert (
|
assert (
|
||||||
# "Phone Number,Template,Sent by,Batch File,Carrier Response,Status,Time"
|
"Phone Number,Template,Sent by,Batch File,Carrier Response,Status,Time"
|
||||||
# in content
|
in content
|
||||||
# )
|
)
|
||||||
# assert "12025555555" in content
|
assert "12025555555" in content
|
||||||
# assert "one-off-" in content
|
assert "one-off-" in content
|
||||||
# os.remove("download_test_file")
|
os.remove("download_test_file")
|
||||||
|
|
||||||
|
|
||||||
def handle_existing_template_case(page):
|
def handle_existing_template_case(page):
|
||||||
|
|||||||
Reference in New Issue
Block a user