This is an automated email from the ASF dual-hosted git repository. imbajin pushed a commit to branch feat/oink-core-platform in repository https://gitbox.apache.org/repos/asf/hugegraph-doc.git
commit 8e0103181f572dee44c3523b35a64a1c43db0ddc Author: dark <[email protected]> AuthorDate: Fri Sep 4 21:09:04 2026 +0800 test(e2e): wait for stable shell state - wait for scoped persistence initialization before disclosure clicks - exercise the same non-active Develop group in both locales - scan contrast only after theme and motion styles settle --- tests/e2e/accessibility.spec.js | 1 + tests/e2e/platform.spec.js | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/e2e/accessibility.spec.js b/tests/e2e/accessibility.spec.js index 56427440c..88bd2ed0d 100644 --- a/tests/e2e/accessibility.spec.js +++ b/tests/e2e/accessibility.spec.js @@ -9,6 +9,7 @@ for (const route of ["/docs/", "/cn/docs/", "/community/", "/cn/community/"]) { content: "*,*::before,*::after{animation:none!important;transition:none!important}" }); await page.evaluate(() => document.fonts.ready); + await page.waitForTimeout(250); const results = await new AxeBuilder({ page }) .withTags(["wcag2a", "wcag2aa", "wcag21aa", "wcag22aa"]) .analyze(); diff --git a/tests/e2e/platform.spec.js b/tests/e2e/platform.spec.js index 38299c75f..260d4a77c 100644 --- a/tests/e2e/platform.spec.js +++ b/tests/e2e/platform.spec.js @@ -4,14 +4,15 @@ for (const locale of ["en", "cn"]) { const prefix = locale === "cn" ? "/cn" : ""; test(`latest ${locale} sidebar persists and isolates collapse`, async ({ page }) => { await page.goto(`${prefix}/docs/introduction/`); + const key = `oink.sidebar.v1.latest.${locale}`; + await expect.poll(() => page.evaluate((name) => localStorage.getItem(name), key)) + .not.toBeNull(); const toggle = page - .locator( - '#td-shell-sidebar li [data-td-shell-tree-toggle][aria-expanded=false][aria-controls*="_nav"]' - ) + .locator('#td-shell-sidebar [data-td-shell-tree-toggle][aria-controls$="_navdevelop-children"]') .first(); + await expect(toggle).toHaveAttribute("aria-expanded", "false"); await toggle.click(); const target = await toggle.getAttribute("aria-controls"); - const key = `oink.sidebar.v1.latest.${locale}`; await expect.poll(() => page.evaluate((name) => localStorage.getItem(name), key)) .toContain(target); await page.reload();
