13 lines
455 B
TypeScript
13 lines
455 B
TypeScript
|
|
import { expect, test } from "@playwright/test";
|
||
|
|
|
||
|
|
test("IDENTITY-ROUTES-001: redirige al login al acceder a una ruta protegida sin sesión", async ({
|
||
|
|
page,
|
||
|
|
}) => {
|
||
|
|
await page.goto("/account");
|
||
|
|
|
||
|
|
await expect(page).toHaveURL(/\/login\?returnTo=%2Faccount$/);
|
||
|
|
await expect(page.locator("#login-email")).toBeVisible();
|
||
|
|
await expect(page.locator("#login-password")).toBeVisible();
|
||
|
|
await expect(page.locator("#account-menu")).not.toBeVisible();
|
||
|
|
});
|