Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -5,7 +5,7 @@ import { skipOrFailWhenE2eInputsMissing } from "./utils/readiness";
|
||||
|
||||
/**
|
||||
* Notifications-Smoke (AK-P3 / DoD D.19): Login -> Notification-Center oeffnen
|
||||
* -> Interim-Screen (AD-28) sichtbar; Topbar-Glocke oeffnet den Drawer;
|
||||
* -> Interim-Screen (AD-28) sichtbar; Topbar-Glocke oeffnet das Center;
|
||||
* Notification-Settings rendern die Modul-Gruppen + Master-Switch.
|
||||
*
|
||||
* Skippt ohne E2E-Credentials / wenn die Routen im Environment nicht erreichbar
|
||||
@@ -16,7 +16,7 @@ const dashboardPath = process.env.E2E_TENANT_DASHBOARD_PATH ?? "/app/dashboard";
|
||||
const notificationsPath = process.env.E2E_TENANT_NOTIFICATIONS_CENTER_PATH ?? dashboardPath.replace(/\/dashboard\/?$/u, "/notifications");
|
||||
|
||||
test.describe("notifications smoke", () => {
|
||||
test("renders the notification center and opens the topbar drawer", async ({ page }) => {
|
||||
test("renders the notification center and follows the topbar bell link", async ({ page }) => {
|
||||
skipOrFailWhenE2eInputsMissing(["E2E_TENANT_EMAIL", "E2E_TENANT_PASSWORD"], "Notifications smoke inputs not configured");
|
||||
await loginAsTenantUser(page, credentials!);
|
||||
|
||||
@@ -25,12 +25,14 @@ test.describe("notifications smoke", () => {
|
||||
|
||||
await expect(page.locator('[data-ui-id="ui.notifications.center"]')).toBeVisible();
|
||||
|
||||
// Topbar bell opens the interim drawer (AD-28) instead of navigating.
|
||||
// The shell exposes the notification center as a regular link so keyboard,
|
||||
// browser-history and open-in-new-tab behaviour remain native.
|
||||
const bell = page.locator('[data-ui-id="ui.action.shell.notifications"]');
|
||||
if (await bell.isVisible()) {
|
||||
await expect(bell).toHaveAttribute("href", notificationsPath);
|
||||
await bell.click();
|
||||
await expect(page.locator('[data-ui-id="ui.notifications.drawer"]')).toBeVisible();
|
||||
await page.locator('[data-ui-id="ui.notifications.drawer.close"]').click();
|
||||
await expect(page).toHaveURL(new RegExp(`${notificationsPath.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&")}(?:[?#].*)?$`, "u"));
|
||||
await expect(page.locator('[data-ui-id="ui.notifications.center"]')).toBeVisible();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user