From 057e039e834f2360bffce24764bedd8402bde246 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 6 Oct 2026 16:33:21 +0000 Subject: [PATCH] Relax German voice E2E name matching for voice labels Co-authored-by: cynarAI --- apps/web/e2e/first-run-onboarding-ux.spec.ts | 6 ++++-- apps/web/e2e/helpers.ts | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/web/e2e/first-run-onboarding-ux.spec.ts b/apps/web/e2e/first-run-onboarding-ux.spec.ts index d8e3476..c89b968 100644 --- a/apps/web/e2e/first-run-onboarding-ux.spec.ts +++ b/apps/web/e2e/first-run-onboarding-ux.spec.ts @@ -49,10 +49,12 @@ test("German voice step lists German voices after choosing Deutsch", async ({ pa await expect(page.getByText(/Loading voices|Stimmen werden geladen/i)).toHaveCount(0, { timeout: 30_000, }); - const germanVoice = page.getByRole("button", { name: /^(Eva|Bernd)$/i }); + const germanVoice = page.getByRole("button", { name: /Eva|Bernd/i }); await expect(germanVoice.first()).toBeVisible({ timeout: 30_000 }); await expect(page.getByRole("button", { name: "Alloy", exact: true })).toHaveCount(0); - await expect(page.getByRole("button", { name: /^(Eva|Bernd)$/i, pressed: true })).toBeVisible(); + await expect( + page.getByRole("button", { name: /Eva|Bernd/i, pressed: true }).first(), + ).toBeVisible(); }); test("main conversation does not show a group subtitle for one Oo", async ({ page }) => { diff --git a/apps/web/e2e/helpers.ts b/apps/web/e2e/helpers.ts index 515719a..b3e4036 100644 --- a/apps/web/e2e/helpers.ts +++ b/apps/web/e2e/helpers.ts @@ -94,7 +94,7 @@ const onboardingLanguageSkipButton = /^(Skip|Überspringen) ·/i; /** After the look picker, skip the optional Oo naming step (keeps the default name). */ export async function skipOnboardingNameStep(page: Page) { await expect(page.getByTestId("onboarding-name-step")).toBeVisible(); - await page.getByRole("button", { name: "Skip", exact: true }).click(); + await page.getByRole("button", { name: onboardingSkipButton }).click(); } /**