From 2d77013b2cbb9e31c82f0a41ecf340c5114c6ea8 Mon Sep 17 00:00:00 2001 From: Mu-Tsun Tsai Date: Wed, 13 Mar 2024 12:38:02 +0800 Subject: [PATCH 1/7] Fix ARIA role --- e2e/specs/bpstudio.spec.ts | 14 ++++++++------ package.json | 2 +- src/app/vue/gadgets/menu/dropdown.vue | 4 ++-- src/app/vue/panel/panel.vue | 2 +- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/e2e/specs/bpstudio.spec.ts b/e2e/specs/bpstudio.spec.ts index a3080745..1999a185 100644 --- a/e2e/specs/bpstudio.spec.ts +++ b/e2e/specs/bpstudio.spec.ts @@ -11,14 +11,15 @@ test("Basic UI", async ({ page }) => { await expect(page).toHaveTitle(/Box Pleating Studio/); const menu = page.getByRole("menubar"); await expect(menu).toBeInViewport(); - await expect(menu.getByRole("menu").first()).not.toBeDisabled(); + await expect(menu.getByRole("menuitem").first()).not.toBeDisabled(); await expect(page.getByRole("toolbar")).toBeInViewport(); - await expect(page.getByRole("form")).toBeAttached(); + await expect(page.getByRole("complementary")).toBeAttached(); //