mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
Fixed test failure
This commit is contained in:
@@ -182,7 +182,7 @@
|
|||||||
<h2 class="usa-summary-box__heading" id="download-reports-heading">Download recent reports</h2>
|
<h2 class="usa-summary-box__heading" id="download-reports-heading">Download recent reports</h2>
|
||||||
|
|
||||||
<div class="usa-summary-box__text">
|
<div class="usa-summary-box__text">
|
||||||
<p class="font-body-xs text-base margin-bottom-3">
|
<p class="font-body-xs margin-bottom-3">
|
||||||
Reports are automatically generated daily at midnight and include data through the previous day.
|
Reports are automatically generated daily at midnight and include data through the previous day.
|
||||||
Today's activity will appear in tomorrow's report.
|
Today's activity will appear in tomorrow's report.
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -188,7 +188,8 @@ def handle_no_existing_template_case(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)")
|
# Look for the new button format "Last 7 days - {size}"
|
||||||
|
download_link = page.get_by_role("link", name=re.compile(r"Last 7 days.*"))
|
||||||
expect(download_link).to_be_visible()
|
expect(download_link).to_be_visible()
|
||||||
|
|
||||||
# Start waiting for the download
|
# Start waiting for the download
|
||||||
|
|||||||
Reference in New Issue
Block a user