Skip to content

Commit

Permalink
update test after remove clear button in base64
Browse files Browse the repository at this point in the history
  • Loading branch information
ashik-75 committed Sep 10, 2023
1 parent 152a655 commit 3884798
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions ui/src/pages/Converter/Base64/tests/base64.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@ describe("BASE64", () => {
render(<Base64 />);
});

test("buttons", () => {
render(<Base64 />);

const textClearButtonElement = screen.getByRole("clear_text");
expect(textClearButtonElement).toBeInTheDocument();

const base64ClearButtonElement = screen.getByRole("clear_base64");
expect(base64ClearButtonElement).toBeInTheDocument();
});

test("textbox", async () => {
render(<Base64 />);

Expand All @@ -29,10 +19,5 @@ describe("BASE64", () => {
await user.type(textInputArea, TEXT);

expect(textInputArea).toHaveValue(TEXT);

const textClearButtonElement = screen.getByRole("clear_text");
await user.click(textClearButtonElement);

expect(textInputArea).toHaveValue("");
});
});

0 comments on commit 3884798

Please sign in to comment.