Fixed test failure

This commit is contained in:
alexjanousekGSA
2025-08-15 07:17:35 -04:00
parent c56f42ff36
commit 9760c1a282
2 changed files with 3 additions and 2 deletions

View File

@@ -182,7 +182,7 @@
<h2 class="usa-summary-box__heading" id="download-reports-heading">Download recent reports</h2>
<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.
Today's activity will appear in tomorrow's report.
</p>

View File

@@ -188,7 +188,8 @@ def handle_no_existing_template_case(page):
page.wait_for_load_state("domcontentloaded")
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()
# Start waiting for the download