This commit is contained in:
Beverly Nguyen
2025-01-27 19:19:41 -08:00
parent 7776f9900a
commit 88b114f58b
3 changed files with 5 additions and 5 deletions

View File

@@ -1521,7 +1521,7 @@ def test_link_to_upload_not_offered_when_entering_personalisation(
# Were entering personalization
assert page.select_one("input[type=text]")["name"] == "placeholder_value"
assert page.select_one("label[for=placeholder_value]").text.strip() == "name"
assert page.select_one("label[for=phone-number]").text.strip() == "name"
# No Upload link shown
assert len(page.select("main a")) == 0
assert "Upload" not in page.select_one("main").text

View File

@@ -174,9 +174,7 @@ def test_should_show_empty_text_box(
# data-module=autofocus is set on a containing element so it
# shouldnt also be set on the textbox itself
assert "data-module" not in textbox
assert (
normalize_spaces(page.select_one("label[for=placeholder_value]").text) == "one"
)
assert normalize_spaces(page.select_one("label[for=phone-number]").text) == "one"
def test_should_prefill_answers_for_get_tour_step(