Skip to content

Commit

Permalink
added typeahead test case
Browse files Browse the repository at this point in the history
  • Loading branch information
rammohan-y committed Jan 6, 2025
1 parent de76ce9 commit 0d9194e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/account-filter.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,12 @@ describe("<AccountFilter>", () => {
/** No default value is set when this prop is present */
cy.get("input").should("have.value", "All accounts");
});

it("verify the typeahead dropdown", () => {
/** Test by typing cus then custom account is selected */
cy.mount(<AccountFilterTestWrapper defaultOption />);
cy.get("input").clear();
cy.get("input").type("cus");
cy.get("div").should("have.class", "typeahead-option active");
});
});

0 comments on commit 0d9194e

Please sign in to comment.