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

@@ -8,6 +8,7 @@ import { skipOrFailWhenE2eFixtureMissing, skipOrFailWhenE2eInputsMissing } from
const credentials = getTenantCredentials();
const dashboardPath = process.env.E2E_TENANT_DASHBOARD_PATH;
const profilePath = process.env.E2E_TENANT_SETTINGS_PROFILE_PATH ?? (dashboardPath ? tenantSettingsProfilePath(dashboardPath) : undefined);
const securityPath = profilePath ? `${profilePath}/security` : undefined;
test.describe("profile security mobile a11y", () => {
test.use({ viewport: narrowMobileViewport, isMobile: true, hasTouch: true });
@@ -22,7 +23,7 @@ test.describe("profile security mobile a11y", () => {
}
});
test("renders security, MFA, session, and danger controls without mobile overflow or critical a11y violations", async ({ page }) => {
test("renders profile security dialogs and the dedicated session page on mobile", async ({ page }) => {
await loginAsTenantUser(page, credentials!);
const response = await page.goto(profilePath!, { waitUntil: "domcontentloaded" });
@@ -31,13 +32,20 @@ test.describe("profile security mobile a11y", () => {
await expect(page).toHaveURL(new RegExp(`${escapeRegExp(profilePath!)}(?:[?#].*)?$`, "u"));
await expect(page.locator('[data-ui-id="ui.settings.profile.page"]').first()).toBeVisible();
await expect(page.locator('[data-ui-id="ui.settings.profile.form"]').first()).toBeVisible();
await expect(page.locator('[data-ui-id="ui.settings.profile.mfa.panel"]').first()).toBeVisible();
await expect(page.locator('[data-ui-id="ui.settings.profile.mfa.status"]').first()).toBeVisible();
await expect(page.locator('[data-ui-id="ui.settings.profile.mfa.toggle.form"]').first()).toBeVisible();
await expect(page.locator('[data-ui-id="ui.settings.profile.password.form"]').first()).toBeVisible();
await expect(page.locator('[data-ui-id="ui.settings.profile.session.panel"]').first()).toBeVisible();
await expect(page.locator('[data-ui-id="ui.settings.profile.danger.delete"]').first()).toBeVisible();
const passwordOpen = page.locator('[data-ui-id="ui.settings.profile.password.open"]').first();
const mfaManage = page.locator('[data-ui-id="ui.settings.profile.mfa.manage"]').first();
await expect(passwordOpen).toBeVisible();
await expect(mfaManage).toBeVisible();
await passwordOpen.click();
await expect(page.locator('[data-ui-id="ui.settings.profile.password.modal"]').first()).toBeVisible();
await expectNoHorizontalOverflow(page);
await expectNoCriticalA11yViolations(page);
await page.locator('[data-ui-id="ui.settings.profile.password.close"]').first().click();
const securityResponse = await page.goto(securityPath!, { waitUntil: "domcontentloaded" });
await skipIfUnavailable(page, securityResponse, `Tenant security path ${securityPath}`);
await expect(page.locator('[data-ui-id="ui.settings.security.page"]').first()).toBeVisible();
await expect(page.locator('[data-ui-id="ui.settings.security.sessions"]').first()).toBeVisible();
await expectNoHorizontalOverflow(page);
await expectNoCriticalA11yViolations(page);
});
@@ -48,7 +56,8 @@ test.describe("profile security mobile a11y", () => {
const response = await page.goto(profilePath!, { waitUntil: "domcontentloaded" });
await skipIfUnavailable(page, response, `Tenant profile path ${profilePath}`);
const form = page.locator('[data-ui-id="ui.settings.profile.password.form"]').first();
await page.locator('[data-ui-id="ui.settings.profile.password.open"]').first().click();
const form = page.locator('[data-ui-id="ui.settings.profile.password.modal"] form').first();
await expect(form).toBeVisible();
await form.locator('[data-ui-id="ui.settings.profile.password.current"]').fill("current-password-for-contract");
await form.locator('[data-ui-id="ui.settings.profile.password.new"]').fill("NewPassword123!");
@@ -71,18 +80,19 @@ test.describe("profile security mobile a11y", () => {
const response = await page.goto(profilePath!, { waitUntil: "domcontentloaded" });
await skipIfUnavailable(page, response, `Tenant profile path ${profilePath}`);
const form = page.locator('[data-ui-id="ui.settings.profile.mfa.toggle.form"]').first();
if ((await form.count()) === 0) {
skipOrFailWhenE2eFixtureMissing("Profile MFA toggle form is not visible for this fixture");
await page.locator('[data-ui-id="ui.settings.profile.mfa.manage"]').first().click();
const form = page.locator('[data-ui-id="ui.settings.profile.mfa.gate"] form').first();
if ((await form.count()) === 0 || !(await form.isVisible())) {
skipOrFailWhenE2eFixtureMissing("Profile MFA password gate is not visible for this fixture");
}
await expect(form).toBeVisible();
await form.locator('[data-ui-id="ui.settings.profile.mfa.passwordCurrent"]').fill("current-password-for-contract");
await form.locator('[data-ui-id="ui.settings.profile.mfa.gatePassword"]').fill("current-password-for-contract");
const submitted = await interceptCurrentRoutePost(page, { status: 204 });
await form.locator('[data-ui-id="ui.settings.profile.mfa.toggle.submit"]').click();
await form.locator('[data-ui-id="ui.settings.profile.mfa.gateSubmit"]').click();
await expect.poll(() => submitted.value).not.toBeNull();
expect(postDataIncludesField(submitted.value, "action", /^(startTotpEnrollment|disableTotpEnrollment)$/u)).toBe(true);
expect(postDataIncludesField(submitted.value, "action", /^startTotpEnrollment$/u)).toBe(true);
expect(postDataIncludesField(submitted.value, "csrf", /.+/u)).toBe(true);
expect(postDataIncludesField(submitted.value, "passwordCurrent", /^current-password-for-contract$/u)).toBe(true);
});