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

@@ -9,8 +9,6 @@ const credentials = getTenantCredentials();
const dashboardPath = process.env.E2E_TENANT_DASHBOARD_PATH;
const subscriptionPath = process.env.E2E_TENANT_SUBSCRIPTION_PATH;
const pluginSettingsPath = process.env.E2E_PLUGIN_SETTINGS_PATH;
const workflowBuilderPath = process.env.E2E_WORKFLOW_BUILDER_PATH;
const workflowRunManualPath = process.env.E2E_WORKFLOW_RUN_MANUAL_PATH;
test.describe("readiness golden path mobile a11y", () => {
test.use({ viewport: narrowMobileViewport, isMobile: true, hasTouch: true });
@@ -27,8 +25,6 @@ test.describe("readiness golden path mobile a11y", () => {
"E2E_TENANT_DASHBOARD_PATH",
"E2E_TENANT_SUBSCRIPTION_PATH",
"E2E_PLUGIN_SETTINGS_PATH",
"E2E_WORKFLOW_BUILDER_PATH",
"E2E_WORKFLOW_RUN_MANUAL_PATH",
],
"Readiness golden path inputs not configured"
);
@@ -41,59 +37,25 @@ test.describe("readiness golden path mobile a11y", () => {
await expect(page.locator('[data-ui-id="ui.action.shell.sidebarTrigger"]').first()).toBeVisible();
await expectReadinessPage(page);
const mobileSidebar = page.locator('[data-ui-id="ui.surface.app.sidebar.mobile"], [data-mobile="true"]').first();
await expect(mobileSidebar).toBeHidden();
const mobileSidebar = page.locator('[data-ui-id="ui.surface.app.sidebar"]').first();
await expect(mobileSidebar).toHaveAttribute("aria-hidden", "true");
await page.locator('[data-ui-id="ui.action.shell.sidebarTrigger"]').first().click();
await expect(mobileSidebar).toBeVisible();
await expect(mobileSidebar).not.toHaveAttribute("aria-hidden", "true");
await clickAndExpectPath(mobileSidebar.locator('[data-ui-id="ui.nav.app.settings"]').first(), page, /\/settings\/profile(?:[?#].*)?$/u);
await expect(mobileSidebar).toBeHidden();
await expect(mobileSidebar).toHaveAttribute("aria-hidden", "true");
await expectReadinessPage(page);
await clickVisibleLinkToPath(page, subscriptionPath!, "Subscription settings link");
await expect(page.locator('[data-ui-id="ui.subscription.page"]').first()).toBeVisible({ timeout: 10_000 });
await expect(page.locator('[data-ui-id^="ui.billing.selfServiceSubscription."]').first()).toBeVisible({ timeout: 10_000 });
await expectReadinessPage(page);
const checkoutLink = page.locator('[data-ui-id="ui.subscription.checkout.link"]').first();
if (!(await isVisible(checkoutLink))) {
skipOrFailWhenE2eFixtureMissing("No checkout catalog link rendered for this fixture");
}
await clickAndExpectPath(checkoutLink, page, /\/subscribe\/[^/?#]+(?:[?#].*)?$/u);
await expect(page.locator('[data-ui-id="ui.subscription.checkout.page"]').first()).toBeVisible({ timeout: 10_000 });
await expectReadinessPage(page);
await clickVisibleLinkToPath(page, subscriptionPath!, "Checkout back-to-subscription link");
await expect(page.locator('[data-ui-id="ui.subscription.page"]').first()).toBeVisible({ timeout: 10_000 });
await expect(page.locator('[data-ui-id="ui.billing.selfServiceSubscription.builder"]').first()).toBeVisible({ timeout: 10_000 });
await expect(page.locator('[data-ui-id="ui.billing.selfServiceSubscription.preview"]').first()).toBeVisible({ timeout: 10_000 });
await clickVisibleLinkToPath(page, pluginSettingsPath!, "Plugin settings link");
await expect(page.locator('[data-ui-id="ui.plugins.page"]').first()).toBeVisible({ timeout: 10_000 });
await expectReadinessPage(page);
await page.locator('[data-ui-id="ui.action.shell.sidebarTrigger"]').first().click();
await expect(mobileSidebar).toBeVisible();
await clickAndExpectPath(mobileSidebar.locator('[data-ui-id="ui.nav.app.workflowEngine"]').first(), page, /\/workflow-engine(?:[?#].*)?$/u);
await expect(mobileSidebar).toBeHidden();
await clickVisibleLinkToPath(page, workflowListPathFromBuilderPath(workflowBuilderPath!), "Workflow list link");
await clickVisibleLinkToPath(page, workflowBuilderPath!, "Workflow builder link");
await expect(page.locator('[data-ui-id="ui.workflows.builder.canvas"]').first()).toBeVisible({ timeout: 10_000 });
await expectReadinessPage(page);
const runTrigger = page.locator('[data-ui-id="ui.workflows.run.dropdown.trigger"]').first();
if (!(await isVisible(runTrigger))) {
skipOrFailWhenE2eFixtureMissing("Workflow builder did not render a run dropdown trigger");
}
const runTriggerButton = runTrigger.locator("xpath=ancestor::button[1]");
if (!(await runTriggerButton.isEnabled())) {
skipOrFailWhenE2eFixtureMissing("Workflow run dropdown is disabled; provide a live deterministic workflow path");
}
await runTrigger.click();
const manualRunOption = page.locator('[data-ui-id="ui.workflows.run.dropdown.manual"]').first();
await expect(manualRunOption).toBeVisible();
await clickAndExpectPath(manualRunOption, page, pathPattern(workflowRunManualPath!));
await expect(page.locator('[data-ui-id="ui.workflows.run.manual.form"]').first()).toBeVisible({ timeout: 10_000 });
await expectReadinessPage(page);
});
});
@@ -128,30 +90,64 @@ async function clickVisibleLinkToPath(page: Page, path: string, label: string):
if (await trySelectSettingsTabToPath(page, path)) {
return;
}
// Cross-section settings links are intentionally absent from each section's
// local tab bar. Return to the canonical settings hub and use its card link,
// matching the user-visible navigation hierarchy.
const settingsMarker = "/settings/";
const settingsIndex = path.indexOf(settingsMarker);
if (settingsIndex >= 0) {
const hubSegment = path.slice(settingsIndex + settingsMarker.length).split("/")[0];
const settingsHubPath = `${path.slice(0, settingsIndex)}${settingsMarker}${hubSegment}`;
await page.goto(settingsHubPath, { waitUntil: "domcontentloaded" });
if (new URL(page.url()).pathname === path.split("?")[0]) {
return;
}
if (await tryClickVisibleLinkToPath(page, path)) {
return;
}
}
skipOrFailWhenE2eFixtureMissing(`${label} was not rendered for ${path}`);
}
async function trySelectSettingsTabToPath(page: Page, path: string): Promise<boolean> {
const combobox = page.getByRole("combobox", { name: "Select..." }).first();
const combobox = page.getByRole("combobox", { name: /Select\.\.\.|Tab navigation/i }).first();
if (!(await isVisible(combobox))) {
return false;
}
const segment = path.split("?")[0].replace(/\/+$/u, "").split("/").pop() ?? "";
if (!segment) {
const pathname = path.split("?")[0].replace(/\/+$/u, "");
const settingsMarker = "/settings/";
const settingsIndex = pathname.indexOf(settingsMarker);
const settingsSegments = settingsIndex >= 0 ? pathname.slice(settingsIndex + settingsMarker.length).split("/") : [];
if (settingsSegments.length === 0) {
return false;
}
const optionName = segment
.split("-")
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
.join(" ");
const hubSegment = settingsSegments[0]!;
const optionName =
{
billing: /Billing|Abrechnung/i,
integrations: /Extensions|Erweiterungen|Integrationen/i,
profile: /My account|Mein Konto/i,
workspace: /Workspace|Arbeitsbereich/i,
compliance: /Compliance|Datenschutz/i,
team: /Team/i,
}[hubSegment] ??
new RegExp(
hubSegment
.split("-")
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
.join(" "),
"i"
);
await combobox.click();
const option = page.getByRole("option", { name: optionName, exact: true }).first();
const option = page.getByRole("option", { name: optionName }).first();
if (!(await isVisible(option))) {
await page.keyboard.press("Escape").catch(() => undefined);
return false;
}
await Promise.all([page.waitForURL(pathPattern(path)), option.click()]);
return true;
const hubPath = `${pathname.slice(0, settingsIndex)}${settingsMarker}${hubSegment}`;
await Promise.all([page.waitForURL((url) => url.pathname === hubPath || url.pathname.startsWith(`${hubPath}/`)), option.click()]);
if (new URL(page.url()).pathname === pathname) return true;
return tryClickVisibleLinkToPath(page, path);
}
async function tryClickVisibleLinkToPath(page: Page, path: string): Promise<boolean> {
@@ -196,10 +192,3 @@ function hrefMatchesPath(href: string | null, path: string): boolean {
function pathPattern(path: string): RegExp {
return new RegExp(`${escapeRegExp(path)}(?:[?#].*)?$`, "u");
}
function workflowListPathFromBuilderPath(path: string): string {
const marker = "/workflow-engine/workflows/";
const index = path.indexOf(marker);
if (index === -1) return path;
return `${path.slice(0, index)}${marker.slice(0, -1)}`;
}