fix(planner): distinct aria-label for export dropdown toggle
The restyled Export split-button's dropdown toggle got aria-label "Export GPX", colliding with the main button's text and breaking the E2E selector that clicked the old "▾" glyph. Give it a dedicated exportOptions label (en + de) and target it in the E2E test. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
1d3ba956cb
commit
3603624b70
4 changed files with 4 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ export function ExportButton({ yjs }: { yjs: YjsState }) {
|
|||
</button>
|
||||
<button
|
||||
onClick={(e) => { e.stopPropagation(); setOpen((v) => !v); }}
|
||||
aria-label={t("exportGpx")}
|
||||
aria-label={t("exportOptions")}
|
||||
aria-expanded={open}
|
||||
className={`${split} rounded-r-md px-2 text-text-md`}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ test.describe("Planner – routing", () => {
|
|||
const sidebar = page.locator("aside");
|
||||
await expect(sidebar.getByText("Refill water here")).toBeVisible({ timeout: 5000 });
|
||||
|
||||
await page.getByRole("button", { name: "▾" }).click();
|
||||
await page.getByRole("button", { name: "Export options" }).click();
|
||||
await expect(page.getByText("Export Plan")).toBeVisible({ timeout: 3000 });
|
||||
const downloadPromise = page.waitForEvent("download");
|
||||
await page.getByText("Export Plan").first().click();
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ export default {
|
|||
newSession: "Neue Sitzung",
|
||||
saveRoute: "Route speichern",
|
||||
exportGpx: "GPX exportieren",
|
||||
exportOptions: "Export-Optionen",
|
||||
exportRoute: "Route exportieren",
|
||||
exportRouteDesc: "GPX-Track für jede App",
|
||||
exportPlan: "Plan exportieren",
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ export default {
|
|||
newSession: "New Session",
|
||||
saveRoute: "Save Route",
|
||||
exportGpx: "Export GPX",
|
||||
exportOptions: "Export options",
|
||||
exportRoute: "Export Route",
|
||||
exportRouteDesc: "Clean GPX track for any app",
|
||||
exportPlan: "Export Plan",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue