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

@@ -39,10 +39,10 @@ test.describe("authenticated mobile locale persistence", () => {
await expect(page).toHaveURL(new RegExp(`${escapeRegExp(dashboardPath)}(?:[?#].*)?$`, "u"));
await expectAuthenticatedLocaleMobileReadinessPage(page, targetLocale);
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.poll(() => sidebarLeft(mobileSidebar)).toBeLessThan(0);
await page.locator('[data-ui-id="ui.action.shell.sidebarTrigger"]').click();
await expect(mobileSidebar).toBeVisible();
await expect.poll(() => sidebarLeft(mobileSidebar)).toBeGreaterThanOrEqual(0);
await expect(mobileSidebar.locator('[data-ui-id="ui.nav.app.dashboard"]').first()).toBeVisible();
const settingsLink = mobileSidebar.locator('[data-ui-id="ui.nav.app.settings"]').first();
@@ -50,7 +50,7 @@ test.describe("authenticated mobile locale persistence", () => {
await settingsLink.click();
await expect(page).toHaveURL(new RegExp(`${escapeRegExp(tenantSettingsProfilePath(dashboardPath))}(?:[?#].*)?$`, "u"));
await expect(mobileSidebar).toBeHidden();
await expect.poll(() => sidebarLeft(mobileSidebar)).toBeLessThan(0);
await expectAuthenticatedLocaleMobileReadinessPage(page, targetLocale);
} finally {
await restoreLocale(page, initialLocale);
@@ -58,6 +58,10 @@ test.describe("authenticated mobile locale persistence", () => {
});
});
async function sidebarLeft(sidebar: ReturnType<Page["locator"]>): Promise<number> {
return (await sidebar.boundingBox())?.x ?? Number.NEGATIVE_INFINITY;
}
async function currentHtmlLocale(page: Page): Promise<string> {
return (await page.locator("html").getAttribute("lang")) ?? "";
}