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:
parent
378dc41c05
commit
86f5d082d2
1 changed files with 2 additions and 2 deletions
|
|
@ -76,8 +76,8 @@ test.describe("Planner", () => {
|
||||||
|
|
||||||
// Switch to Notes tab
|
// Switch to Notes tab
|
||||||
await page.getByRole("button", { name: "Notes" }).click();
|
await page.getByRole("button", { name: "Notes" }).click();
|
||||||
// CodeMirror renders placeholder as a .cm-placeholder element, not an HTML placeholder attribute
|
// CodeMirror editor should be visible with the placeholder text
|
||||||
await expect(page.locator(".cm-placeholder, .cm-content")).toBeVisible();
|
await expect(page.getByText("Add notes for this session...")).toBeVisible();
|
||||||
|
|
||||||
// Switch back to Waypoints tab
|
// Switch back to Waypoints tab
|
||||||
await page.getByRole("button", { name: "Waypoints" }).click();
|
await page.getByRole("button", { name: "Waypoints" }).click();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue