Skip to content

Commit aa0cde0

Browse files
committed
Fix tests for VariantAnalysisActions
1 parent a4b3d53 commit aa0cde0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/ql-vscode/src/view/variant-analysis/__tests__/VariantAnalysisActions.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ describe(VariantAnalysisActions.name, () => {
5050
variantAnalysisStatus: VariantAnalysisStatus.Canceling,
5151
});
5252

53-
const button = screen.getByText("Stopping query");
53+
const button = await screen.findByText("Stopping query");
5454
expect(button).toBeInTheDocument();
55-
expect(button.getElementsByTagName("input")[0]).toBeDisabled();
55+
expect(button).toBeDisabled();
5656
});
5757

5858
it("does not render a stop query button when canceling", async () => {

0 commit comments

Comments
 (0)