Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -1,6 +1,12 @@
import { expect, test } from "./utils/test";
import { expectNoCriticalA11yViolations } from "./utils/axe";
import { getTenantCredentials, loginAsTenantUser, tenantRolesAndPermissionsPath } from "./utils/auth";
import {
getTenantCredentials,
loginAsTenantUser,
tenantLegacyRolesAndPermissionsPath,
tenantRolesAndPermissionsPath,
tenantSettingsMembersPath,
} from "./utils/auth";
import { expectNoHorizontalOverflow } from "./utils/mobile";
import { escapeRegExp, skipIfUnavailable } from "./utils/navigation";
import { skipOrFailWhenE2eFixtureMissing, skipOrFailWhenE2eInputsMissing } from "./utils/readiness";
@@ -11,8 +17,9 @@ import { skipOrFailWhenE2eFixtureMissing, skipOrFailWhenE2eInputsMissing } from
const credentials = getTenantCredentials();
const dashboardPath = process.env.E2E_TENANT_DASHBOARD_PATH;
const rolesAndPermissionsPath =
process.env.E2E_TENANT_ROLES_AND_PERMISSIONS_PATH ?? (dashboardPath ? tenantRolesAndPermissionsPath(dashboardPath) : undefined);
const rolesAndPermissionsPath = process.env.E2E_TENANT_ROLES_AND_PERMISSIONS_PATH ?? (dashboardPath ? tenantRolesAndPermissionsPath(dashboardPath) : undefined);
const legacyRolesAndPermissionsPath = dashboardPath ? tenantLegacyRolesAndPermissionsPath(dashboardPath) : undefined;
const membersPath = process.env.E2E_TENANT_MEMBERS_PATH ?? (dashboardPath ? tenantSettingsMembersPath(dashboardPath) : undefined);
test.describe("tenant roles and permissions desktop a11y", () => {
test.use({ viewport: { width: 1440, height: 900 } });
@@ -22,7 +29,7 @@ test.describe("tenant roles and permissions desktop a11y", () => {
["E2E_TENANT_EMAIL", "E2E_TENANT_PASSWORD", "E2E_TENANT_DASHBOARD_PATH"],
"Tenant roles and permissions E2E inputs not configured"
);
if (!rolesAndPermissionsPath) {
if (!rolesAndPermissionsPath || !legacyRolesAndPermissionsPath || !membersPath) {
skipOrFailWhenE2eFixtureMissing("Tenant roles and permissions path could not be derived; set E2E_TENANT_ROLES_AND_PERMISSIONS_PATH");
}
});
@@ -33,15 +40,13 @@ test.describe("tenant roles and permissions desktop a11y", () => {
const response = await page.goto(rolesAndPermissionsPath!, { waitUntil: "domcontentloaded" });
await skipIfUnavailable(page, response, `Tenant roles and permissions path ${rolesAndPermissionsPath}`);
const rolesPath = `${rolesAndPermissionsPath}/roles`;
// Index redirects into the merged S02 roles tab.
await expect(page).toHaveURL(new RegExp(`${escapeRegExp(rolesPath)}(?:[?#].*)?$`, "u"));
await expect(page.locator('[data-ui-id="ui.settings.rolesAndPermissions.page"]').first()).toBeVisible();
// The helper resolves directly to the canonical Team-Hub roles tab.
await expect(page).toHaveURL(new RegExp(`${escapeRegExp(rolesAndPermissionsPath!)}(?:[?#].*)?$`, "u"));
await expect(page.locator('[data-ui-id="ui.settings.hub.team"]').first()).toBeVisible();
await expect(page.locator('[data-ui-id="ui.settings.rolesAndPermissions.roles"] table').first()).toBeVisible();
await expect(page.locator('[data-ui-id="ui.settings.rolesAndPermissions.roles.filter"]').first()).toBeVisible();
// S01/S02 tab bar: link back to the members tab.
await expect(page.locator('[data-ui-id="ui.settings.rolesAndPermissions.tab.members"]').first()).toBeVisible();
await expect(page.locator('[data-ui-id="ui.settings.hub.team.tab.members"]').first()).toBeVisible();
await expectNoHorizontalOverflow(page);
await expectNoCriticalA11yViolations(page);
@@ -50,12 +55,12 @@ test.describe("tenant roles and permissions desktop a11y", () => {
test("redirects the legacy users and permissions sub-tabs", async ({ page }) => {
await loginAsTenantUser(page, credentials!);
const usersResponse = await page.goto(`${rolesAndPermissionsPath!}/users`, { waitUntil: "domcontentloaded" });
await skipIfUnavailable(page, usersResponse, `Tenant roles users path ${rolesAndPermissionsPath}/users`);
const usersResponse = await page.goto(`${legacyRolesAndPermissionsPath!}/users`, { waitUntil: "domcontentloaded" });
await skipIfUnavailable(page, usersResponse, `Tenant roles users path ${legacyRolesAndPermissionsPath}/users`);
// Matrix is superseded by the inline role dropdown in the members list (D01).
await expect(page).toHaveURL(/\/settings\/members(?:[?#].*)?$/u);
await expect(page).toHaveURL(new RegExp(`${escapeRegExp(membersPath!)}(?:[?#].*)?$`, "u"));
await page.goto(`${rolesAndPermissionsPath!}/permissions`, { waitUntil: "domcontentloaded" });
await expect(page).toHaveURL(new RegExp(`${escapeRegExp(`${rolesAndPermissionsPath}/roles`)}(?:[?#].*)?$`, "u"));
await page.goto(`${legacyRolesAndPermissionsPath!}/permissions`, { waitUntil: "domcontentloaded" });
await expect(page).toHaveURL(new RegExp(`${escapeRegExp(rolesAndPermissionsPath!)}(?:[?#].*)?$`, "u"));
});
});