Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homepage search test compatible with autocomplete #99

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

kevindew
Copy link
Member

With the introduction of autocomplete for GOV.UK Site Search this test has started failing. The reason this is failing is that the auocomplete component makes use of an input with a role of "combobox" and thus locating an element with a role of "searchbox" fails.

Rather than changing the role to "combobox" I have taken the approach of finding by label so that this can work with both input types. The reason for is that autcomplete is new and we have set-up a mechanism so it can be turned off quickly 1, should we do that it would be frustrating if the e2e tests started failing.

With the introduction of autocomplete for GOV.UK Site Search this test
has started failing. The reason this is failing is that the auocomplete
component makes use of an input with a role of "combobox" and thus
locating an element with a role of "searchbox" fails.

Rather than changing the role to "combobox" I have taken the approach of
finding by label so that this can work with both input types. The reason
for is that autcomplete is new and we have set-up a mechanism so it can
be turned off quickly [1], should we do that it would be frustrating if
the e2e tests started failing.

[1]: alphagov/govuk-helm-charts#2832
@kevindew kevindew merged commit 4c036b5 into main Dec 12, 2024
5 checks passed
@kevindew kevindew deleted the autocomplete-agnostic-search-test branch December 12, 2024 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants