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:
parent
c5956d907c
commit
afa67532ea
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue