From e769d421be858392e2cf3be75c08b4e2a045a4f8 Mon Sep 17 00:00:00 2001 From: Jonathan Bobel Date: Wed, 26 Feb 2025 12:19:15 -0500 Subject: [PATCH] Update test_tour.py --- tests/app/main/views/test_tour.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/app/main/views/test_tour.py b/tests/app/main/views/test_tour.py index c6316d0a7..f55f19529 100644 --- a/tests/app/main/views/test_tour.py +++ b/tests/app/main/views/test_tour.py @@ -163,6 +163,8 @@ def test_should_show_empty_text_box( "main.tour_step", service_id=SERVICE_ONE_ID, template_id=fake_uuid, step_index=1 ) + print(page.prettify()) + textbox = page.select_one( "[data-module=autofocus][data-force-focus=True] .usa-input" ) @@ -175,7 +177,7 @@ def test_should_show_empty_text_box( # shouldn’t also be set on the textbox itself assert "data-module" not in textbox - assert normalize_spaces(page.select_one("label[for=phone-number]").text) == "one" + assert normalize_spaces(page.select_one("label").text) == "one" def test_should_prefill_answers_for_get_tour_step(