Skip to content

Commit

Permalink
test: update ui test
Browse files Browse the repository at this point in the history
Signed-off-by: Zxilly <[email protected]>
  • Loading branch information
Zxilly committed Jul 12, 2024
1 parent ef38d99 commit 64e614c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/explorer/Explorer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe("explorer", () => {
await waitFor(() => screen.getByText("Select a go binary"));

fireEvent.change(screen.getByTestId("file-selector"), { target: { files: [new File(["it"], "test.bin")] } });
await waitFor(() => screen.getByText("Analyzing binary..."));
await waitFor(() => screen.getByText("Analyzing test.bin"));
});

it("should display error when analysis fails", async () => {
Expand All @@ -71,7 +71,7 @@ describe("explorer", () => {
await waitFor(() => screen.getByText("Select a go binary"));

fireEvent.change(screen.getByTestId("file-selector"), { target: { files: [new File(["test"], "test.bin")] } });
await waitFor(() => screen.getByText("Failed to analyze test.bin, see browser dev console for more details."));
await waitFor(() => screen.getByText("Failed to analyze test.bin"));
});
});
});

0 comments on commit 64e614c

Please sign in to comment.