Skip to content

Commit

Permalink
Separate screens to each test case
Browse files Browse the repository at this point in the history
  • Loading branch information
paazmaya committed Sep 25, 2023
1 parent b6ef74d commit 8b1d04e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion integration_tests/test/dark-mode.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,27 @@ test.beforeEach(async ({ page }) => {
await mockGetProjects(page, [project]);
});

test("get dark screens", async ({ page, vrt }) => {
test("dark mode login", async ({ page, vrt }) => {
await page.goto("/login");
await vrt.trackPage(page, "Login page - Dark mode");
});

test("dark mode projects", async ({ page, vrt }) => {
await page.goto("/projects");
await vrt.trackPage(page, "Projects list page - Dark mode");
});

test("dark mode profile", async ({ page, vrt }) => {
await page.goto("/profile");
await vrt.trackPage(page, "User profile page - Dark mode");
});

test("dark mode register", async ({ page, vrt }) => {
await page.goto("/register");
await vrt.trackPage(page, "Register page - Dark mode");
});

test("dark mode users", async ({ page, vrt }) => {
await page.goto("/users");
await vrt.trackPage(page, "User list page - Dark mode");
});

0 comments on commit 8b1d04e

Please sign in to comment.