Merge pull request #2522 from GSA/2515-remove-autofocus-js

2515 - Remove autofocus.js
This commit is contained in:
Jonathan Bobel
2025-05-01 10:02:26 -04:00
committed by GitHub
9 changed files with 20 additions and 134 deletions

View File

@@ -815,8 +815,9 @@ def test_manage_org_users_should_show_live_search_if_more_than_7_users(
)
assert len(page.select(".user-list-item")) == number_of_users
textbox = page.select_one("[data-module=autofocus] .usa-input")
assert "value" not in textbox
textbox = page.select_one(".usa-input")
assert textbox is not None
assert textbox.get("value") is None
assert textbox["name"] == "search"
# data-module=autofocus is set on a containing element so it
# shouldnt also be set on the textbox itself

View File

@@ -186,7 +186,7 @@ def test_should_show_live_search_if_more_than_7_users(
)
assert len(page.select(".user-list-item")) == number_of_users
textbox = page.select_one("[data-module=autofocus] .usa-input")
textbox = page.select_one(".usa-input")
assert "value" not in textbox
assert textbox["name"] == "search"
# data-module=autofocus is set on a containing element so it