Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fred Lefévère-Laoide authored and Fred Lefévère-Laoide committed Jul 16, 2024
1 parent f5787fa commit f6c5ac9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe("FileSelector Component", () => {
it("displays the right info for string", async () => {
const { getByText } = render(<FileSelector label="toto" defaultLabel="titi" className="taipy-file-selector" />);
const elt = getByText("toto");
expect(elt.parentElement).toHaveClass("taipy-file-selector");
expect(elt.parentElement?.parentElement).toHaveClass("taipy-file-selector");
});
it("displays the default value", async () => {
const { getByText } = render(<FileSelector defaultLabel="titi" label={undefined as unknown as string} />);
Expand Down

0 comments on commit f6c5ac9

Please sign in to comment.