Relax German voice E2E name matching for voice labels

Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
Cursor Agent 2026-10-06 16:33:21 +00:00
parent 6b6e34c1a6
commit 057e039e83
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View File

@ -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, { await expect(page.getByText(/Loading voices|Stimmen werden geladen/i)).toHaveCount(0, {
timeout: 30_000, 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(germanVoice.first()).toBeVisible({ timeout: 30_000 });
await expect(page.getByRole("button", { name: "Alloy", exact: true })).toHaveCount(0); 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 }) => { test("main conversation does not show a group subtitle for one Oo", async ({ page }) => {

View File

@ -94,7 +94,7 @@ const onboardingLanguageSkipButton = /^(Skip|Überspringen) ·/i;
/** After the look picker, skip the optional Oo naming step (keeps the default name). */ /** After the look picker, skip the optional Oo naming step (keeps the default name). */
export async function skipOnboardingNameStep(page: Page) { export async function skipOnboardingNameStep(page: Page) {
await expect(page.getByTestId("onboarding-name-step")).toBeVisible(); await expect(page.getByTestId("onboarding-name-step")).toBeVisible();
await page.getByRole("button", { name: "Skip", exact: true }).click(); await page.getByRole("button", { name: onboardingSkipButton }).click();
} }
/** /**