Fix German E2E: Nachricht composer, voice loading wait, Heute rhythm
Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
parent
2d5bb7ea35
commit
7f35ac1aa9
@ -46,7 +46,12 @@ test("German voice step lists German voices after choosing Deutsch", async ({ pa
|
||||
await page.getByRole("button", { name: /^(Continue|Weiter)$/i }).click();
|
||||
await page.getByRole("button", { name: /^(Skip|Überspringen)$/i }).click();
|
||||
await page.getByRole("button", { name: "Deutsch", exact: true }).click();
|
||||
await expect(page.getByRole("button", { name: "Eva", exact: true })).toBeVisible();
|
||||
await expect(page.getByText(/Loading voices|Stimmen werden geladen/i)).toHaveCount(0, {
|
||||
timeout: 30_000,
|
||||
});
|
||||
await expect(page.getByRole("button", { name: "Eva", exact: true })).toBeVisible({
|
||||
timeout: 30_000,
|
||||
});
|
||||
await expect(page.getByRole("button", { name: "Alloy", exact: true })).toHaveCount(0);
|
||||
await expect(page.getByRole("button", { name: "Eva", exact: true })).toHaveAttribute(
|
||||
"aria-pressed",
|
||||
|
||||
@ -299,7 +299,7 @@ export async function waitForChatComposer(page: Page) {
|
||||
await expect(page.getByTestId("shell-root")).toHaveAttribute("data-ready", "true", {
|
||||
timeout: 30_000,
|
||||
});
|
||||
await expect(page.getByRole("combobox", { name: "Message" })).toBeVisible();
|
||||
await expect(page.getByRole("combobox", { name: /^Message$|^Nachricht$/i })).toBeVisible();
|
||||
}
|
||||
|
||||
/** Create a named bot via RPC for test setup (skips the + picker). */
|
||||
|
||||
@ -92,7 +92,9 @@ test("Heute shows the coach's brief, habits and goals, checks habits off and set
|
||||
|
||||
// Check-in times live behind one compact control.
|
||||
const rhythm = page.getByTestId("heute-rhythm");
|
||||
await expect(rhythm).toBeVisible();
|
||||
await expect(page.getByTestId("heute-coach-brief")).toBeVisible();
|
||||
await rhythm.scrollIntoViewIfNeeded();
|
||||
await expect(rhythm).toBeVisible({ timeout: 30_000 });
|
||||
const rhythmLoaded = page.waitForResponse(
|
||||
(response) => response.url().includes("/rpc/coach/rhythm/get") && response.ok(),
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user