-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathnavigation.spec.ts
More file actions
53 lines (44 loc) · 1.75 KB
/
navigation.spec.ts
File metadata and controls
53 lines (44 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { test, expect } from "./fixtures/auth.fixture";
test.describe("Navigation", () => {
test("dashboard loads after login", async ({ authedPage: page }) => {
// The dashboard should be visible after login
await expect(page.locator("body")).not.toBeEmpty();
await expect(page).toHaveURL("/");
});
test("can navigate to vendors page", async ({ authedPage: page }) => {
await page.goto("/vendors");
await expect(page).toHaveURL(/\/vendors/);
// Should see page content (not redirected to login)
await expect(page.locator("body")).not.toBeEmpty();
});
test("can navigate to risk management page", async ({ authedPage: page }) => {
await page.goto("/risk-management");
await expect(page).toHaveURL(/\/risk-management/);
});
test("can navigate to tasks page", async ({ authedPage: page }) => {
await page.goto("/tasks");
await expect(page).toHaveURL(/\/tasks/);
});
test("can navigate to model inventory page", async ({
authedPage: page,
}) => {
await page.goto("/model-inventory");
await expect(page).toHaveURL(/\/model-inventory/);
});
test("can navigate to policies page", async ({ authedPage: page }) => {
await page.goto("/policies");
await expect(page).toHaveURL(/\/policies/);
});
test("can navigate to file manager page", async ({ authedPage: page }) => {
await page.goto("/file-manager");
await expect(page).toHaveURL(/\/file-manager/);
});
test("can navigate to settings page", async ({ authedPage: page }) => {
await page.goto("/settings");
await expect(page).toHaveURL(/\/settings/);
});
test("can navigate to training page", async ({ authedPage: page }) => {
await page.goto("/training");
await expect(page).toHaveURL(/\/training/);
});
});