Skip to content

Commit

Permalink
fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardcho1231 committed Mar 22, 2024
1 parent 009228d commit fdc4830
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blocks/identity-block/features/login/default.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ jest.mock("fusion:properties", () => jest.fn(() => ({})));
describe("Identity Login Feature", () => {
it("renders", () => {
render(<Login customFields={defaultCustomFields} />);
expect(screen.queryByRole("form")).not.toBeNull();
expect(screen.getByRole("form")).not.toBeNull();
});

it("shows login form", () => {
render(<Login customFields={defaultCustomFields} />);
expect(screen.queryByRole("form")).not.toBeNull();
expect(screen.getByRole("form")).not.toBeNull();
expect(screen.getByLabelText("identity-block.password")).not.toBeNull();
expect(screen.getByLabelText("identity-block.email-label")).not.toBeNull();
});
Expand Down Expand Up @@ -97,7 +97,7 @@ describe("Identity Login Feature - rejected Login", () => {
fireEvent.click(screen.getByRole("button"));

await waitFor(() => expect(mockLogin).toHaveBeenCalled());
await waitFor(() => screen.getByText("identity-block.login-form-error"));
await screen.findByText("identity-block.login-form-error");
});
});

Expand Down

0 comments on commit fdc4830

Please sign in to comment.