Skip suggest box tests using Tab

This commit is contained in:
Koen Vlaswinkel
2024-02-02 15:59:43 +01:00
parent 89ce6cfde9
commit d1b81b3f86

View File

@@ -172,13 +172,14 @@ describe("SuggestBox", () => {
expect(onChange).toHaveBeenCalledWith("Argument[block].Parameter[1]");
});
it("selects an option using Tab", async () => {
// Skipped because it's flaky
it.skip("selects an option using Tab", async () => {
render({
value: "Argument[block].1",
});
await userEvent.click(screen.getByRole("combobox"));
await userEvent.keyboard("{Enter}");
await userEvent.keyboard("{Tab}");
expect(onChange).toHaveBeenCalledWith("Argument[block].Parameter[1]");
});
@@ -208,7 +209,8 @@ describe("SuggestBox", () => {
expect(screen.queryByRole("option")).not.toBeInTheDocument();
});
it("closes the options when selecting an option using Tab", async () => {
// Skipped because it's flaky
it.skip("closes the options when selecting an option using Tab", async () => {
render({
value: "Argument[block].1",
});