From 2d5bb7ea35dae6f8c979b2ffe5b03394059d777c Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 6 Oct 2026 13:47:16 +0000 Subject: [PATCH] =?UTF-8?q?Use=20language-step=20Skip=20=C2=B7=20locale=20?= =?UTF-8?q?button=20in=20completeOnboarding?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: cynarAI --- apps/web/e2e/first-run-onboarding-ux.spec.ts | 7 +++++-- apps/web/e2e/helpers.ts | 2 +- 2 files changed, 6 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 ac4137c..3ac66f8 100644 --- a/apps/web/e2e/first-run-onboarding-ux.spec.ts +++ b/apps/web/e2e/first-run-onboarding-ux.spec.ts @@ -8,8 +8,11 @@ test("onboarding names the first Oo and shows it in chat", async ({ page }) => { await page.getByRole("button", { name: /^(Continue|Weiter)$/i }).click(); await expect(page.getByTestId("onboarding-name-step")).toBeVisible(); await page.getByTestId("onboarding-oo-name-input").fill("Luna"); - await page.getByTestId("onboarding-name-step").getByRole("button", { name: "Continue" }).click(); - await page.getByRole("button", { name: /Skip/i }).click(); + await page + .getByTestId("onboarding-name-step") + .getByRole("button", { name: /^(Continue|Weiter)$/i }) + .click(); + await page.getByRole("button", { name: /^(Skip|Überspringen ·)/i }).click(); await page.getByRole("button", { name: /^(Skip|Überspringen)$/i }).click(); await expect(page).toHaveURL(/\/app\/g\/[^/]+/, { timeout: 30_000 }); await expect( diff --git a/apps/web/e2e/helpers.ts b/apps/web/e2e/helpers.ts index 43b0dee..43bca4a 100644 --- a/apps/web/e2e/helpers.ts +++ b/apps/web/e2e/helpers.ts @@ -144,7 +144,7 @@ export async function completeOnboarding( await page.getByRole("button", { name: onboardingSkipButton }).click(); } await expect(language).toBeVisible(); - await page.getByRole("button", { name: onboardingSkipButton }).click(); + await page.getByRole("button", { name: onboardingLanguageSkipButton }).click(); await expect(voice).toBeVisible(); await page.getByRole("button", { name: onboardingSkipButton }).click(); }