-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🧪 test(schema): remove system profile tests
- Loading branch information
1 parent
cc980f7
commit 6025293
Showing
3 changed files
with
4 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ setupApiHandlers(); | |
describe("pages/users", () => { | ||
const useRouter = jest.spyOn(require("next/router"), "useRouter"); | ||
|
||
it("should list users with system profile", async () => { | ||
it("should list users", async () => { | ||
useRouter.mockImplementation(() => ({ | ||
asPath: "/", | ||
isReady: true, | ||
|
@@ -25,17 +25,17 @@ describe("pages/users", () => { | |
|
||
expect( | ||
await screen.findByRole("row", { | ||
name: "Username Sort By Username Filter Username By Search Name Sort By Name Filter Name By Search Role Sort By Role Filter Role By Status Email Station Action", | ||
name: "Username Sort By Username Filter Username By Search Name Sort By Name Filter Name By Search Role Sort By Role Filter Role By Status Action", | ||
}) | ||
).toBeInTheDocument(); | ||
expect( | ||
screen.getByRole("row", { | ||
name: "user-1 User 1 Role 1 [email protected] station - 1 Edit User", | ||
name: "user-1 User 1 Role 1 Edit User", | ||
}) | ||
).toBeInTheDocument(); | ||
expect( | ||
screen.getByRole("row", { | ||
name: "user-2 User 2 Role 2 [email protected] Edit User", | ||
name: "user-2 User 2 Role 2 Edit User", | ||
}) | ||
).toBeInTheDocument(); | ||
expect( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters