Fix E2E: notes tab test uses CM placeholder instead of textarea

CodeMirror renders placeholders as .cm-placeholder elements, not
HTML placeholder attributes. Updated the sidebar tabs test to look
for the CodeMirror content area instead.

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

View file

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