mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-28 18:24:00 -04:00
Refactored reports to use pregenerated docs instead (#2831)
* Refactored reports to use pregenerated docs instead * Fixed e2e test * Fixed anothr bug * Cleanup * Fixed timezone conversion * Updated ref files * Updated reference files, refreshed ui/ux for report generation. Buttons toggle on and off based on if report exists * Fixed linting errors, removed pytz * Fixed test failure * e2e test fix * Speeding up unit tests * Removed python time library that was causing performance issues with unit tests * Updated poetry lock * Unit test improvements * Made change that ken reccomended
This commit is contained in:
@@ -34,7 +34,12 @@ def test_should_200_for_tour_start(
|
||||
"service one: ((one)) ((two)) ((three))"
|
||||
)
|
||||
|
||||
assert page.select("a.usa-button")[0]["href"] == url_for(
|
||||
# Find the tour step button specifically, not just any usa-button
|
||||
tour_buttons = [
|
||||
btn for btn in page.select("a.usa-button") if "tour" in btn.get("href", "")
|
||||
]
|
||||
assert len(tour_buttons) > 0, "No tour button found"
|
||||
assert tour_buttons[0]["href"] == url_for(
|
||||
".tour_step", service_id=SERVICE_ONE_ID, template_id=fake_uuid, step_index=1
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user