Fix E2E: match CodeMirror placeholder by visible text

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-04-11 03:07:45 +02:00
parent 378dc41c05
commit 86f5d082d2
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9

View file

@ -76,8 +76,8 @@ test.describe("Planner", () => {
// Switch to Notes tab
await page.getByRole("button", { name: "Notes" }).click();
// CodeMirror renders placeholder as a .cm-placeholder element, not an HTML placeholder attribute
await expect(page.locator(".cm-placeholder, .cm-content")).toBeVisible();
// CodeMirror editor should be visible with the placeholder text
await expect(page.getByText("Add notes for this session...")).toBeVisible();
// Switch back to Waypoints tab
await page.getByRole("button", { name: "Waypoints" }).click();