From 82230f9e8bc67bf05c30e43f3f02e8c3d74ca6e5 Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Mon, 20 Jan 2025 14:34:11 -0800 Subject: [PATCH] fixed testing --- tests/app/main/views/test_dashboard.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/app/main/views/test_dashboard.py b/tests/app/main/views/test_dashboard.py index 97cf42d68..461888c5c 100644 --- a/tests/app/main/views/test_dashboard.py +++ b/tests/app/main/views/test_dashboard.py @@ -657,9 +657,8 @@ def test_should_show_recent_templates_on_dashboard( ] assert "Total messages" in headers - table_rows = page.find_all("tbody")[0].find_all("tr") - - assert len(table_rows) == 0 + table_rows = page.find_all("tbody")[1].find_all("tr") + assert len(table_rows) == 2 @pytest.mark.parametrize( @@ -1943,7 +1942,6 @@ def test_service_dashboard_shows_batched_jobs( job_table_body = page.find("table", class_="job-table") rows = job_table_body.find_all("tbody")[0].find_all("tr") - - assert len(rows) == 0 + assert len(rows) == 1 assert job_table_body is not None