Skip to content

Commit

Permalink
Merge pull request #748 from dxc-technology/jialecl-fileInputTestFix
Browse files Browse the repository at this point in the history
File input test fix
  • Loading branch information
mawelCaballero authored Mar 25, 2022
2 parents 7d169a9 + e82e9c5 commit 4f79392
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ describe("DxcFileInputComponent", () => {
type: "text/plain",
});
fireEvent.change(inputEl, { target: { files: [file] } });
await waitFor(() => {
expect(() => screen.getByText("foo.txt")).toThrow();
});
const fileInScreen = screen.queryByText("foo.txt");
expect(fileInScreen).toBeFalsy();
});

test("should render error when file does not meet minSize", async () => {
Expand Down

0 comments on commit 4f79392

Please sign in to comment.