Stabilize Heute reload URL and German voice E2E assertions
Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
This commit is contained in:
parent
7f35ac1aa9
commit
628b008e2a
@ -49,14 +49,10 @@ 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,
|
||||
});
|
||||
await expect(page.getByRole("button", { name: "Eva", exact: true })).toBeVisible({
|
||||
timeout: 30_000,
|
||||
});
|
||||
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", exact: true })).toHaveAttribute(
|
||||
"aria-pressed",
|
||||
"true",
|
||||
);
|
||||
await expect(germanVoice.filter({ has: page.locator('[aria-pressed="true"]') }).first()).toBeVisible();
|
||||
});
|
||||
|
||||
test("main conversation does not show a group subtitle for one Oo", async ({ page }) => {
|
||||
|
||||
@ -85,7 +85,7 @@ test("Heute shows the coach's brief, habits and goals, checks habits off and set
|
||||
await captureScreenshot(page, testInfo, "heute-coach");
|
||||
|
||||
await page.reload();
|
||||
await openHeute(page);
|
||||
await page.goto("/app/heute", { waitUntil: "domcontentloaded" });
|
||||
await expect(page).toHaveURL(/\/app\/heute$/);
|
||||
await expect(page.getByTestId("heute-brief")).toBeVisible();
|
||||
await expect(page.getByTestId(`heute-habit-${habit.id}`).getByRole("checkbox")).toBeChecked();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user