Skip to content

Commit 5491cf2

Browse files
test: added test cases for password input component
1 parent bd55841 commit 5491cf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/PasswordInput/__test__/PasswordInput.spec.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ describe("PasswordInput component", () => {
7777
});
7878

7979
it("hides password meter when hidePasswordMeter prop is true", () => {
80-
const { queryByTestId } = render(
80+
const { container } = render(
8181
<PasswordInput label="Password" hidePasswordMeter />
8282
);
83-
expect(queryByTestId("password-meter")).not.toBeInTheDocument();
83+
expect(container.querySelector(".deriv-password__meter")).not.toBeInTheDocument();
8484
});
8585

8686
});

0 commit comments

Comments
 (0)