We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bd8c8e commit 820989aCopy full SHA for 820989a
1 file changed
extensions/ql-vscode/src/view/common/SuggestBox/__tests__/SuggestBox.test.tsx
@@ -1,4 +1,4 @@
1
-import { render as reactRender, screen } from "@testing-library/react";
+import { render as reactRender, screen, waitFor } from "@testing-library/react";
2
import type { SuggestBoxProps } from "../SuggestBox";
3
import { SuggestBox } from "../SuggestBox";
4
import { userEvent } from "@testing-library/user-event";
@@ -219,7 +219,9 @@ describe("SuggestBox", () => {
219
220
await userEvent.keyboard("{Tab}");
221
222
- expect(screen.queryByRole("option")).not.toBeInTheDocument();
+ await waitFor(() => {
223
+ expect(screen.queryByRole("option")).not.toBeInTheDocument();
224
+ });
225
});
226
227
it("shows no suggestions with no matching followup options", async () => {
0 commit comments