Bug 41980: (follow-up) Fix Cypress test ambiguous field code search

Typing "CE" in the allow_fields dropdown now matches both
"CE - Unused" and "AY - Sequence number" (case-insensitive
match on "ce" in "Sequence"), causing the wrong option to be
selected. Use "CE - " to uniquely target the intended option.

Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
(cherry picked from commit d35f76316d)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
Martin Renvoize 2026-03-27 16:09:30 +01:00 committed by Jacob O'Mara
parent c5956d907c
commit afa67532ea
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -164,11 +164,11 @@ describe("Accounts", () => {
cy.get("#allow_fields .vs__search").type("CG" + "{enter}", {
force: true,
});
cy.get("#allow_fields .vs__search").type("CE" + "{enter}", {
cy.get("#allow_fields .vs__search").type("CE - " + "{enter}", {
force: true,
});
cy.get("#allow_fields .vs__selected-options").contains("CG");
cy.get("#allow_fields .vs__selected-options").contains("CE");
cy.get("#allow_fields .vs__selected-options").contains("CE - Unused");
cy.get("#allow_fields .vs__selected-options .vs__selected")
.contains("CG")