Skip to content

Commit d5a2a8e

Browse files
Programcodeclaude
andcommitted
Find Library source fields by placeholder in full-stack journeys
The form gained visible Title and Content labels, so the placeholder is no longer the accessible name. This was already failing on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 660d00f commit d5a2a8e

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎e2e/full-stack/case-generation.spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ test("a signed-in user generates a case grounded in a saved Library source", asy
1010
await startDebate(page, motion);
1111
await page.goto("/app/library");
1212
await page.getByRole("button", { name: "Add Source" }).click();
13-
await page.getByRole("textbox", { name: "Source title..." }).fill("Tallinn fare study");
13+
await page.getByPlaceholder("Source title...").fill("Tallinn fare study");
1414
// Imported articles are often this long. Inlining that text in the request
1515
// exceeded the Edge Function's 200 KB body limit before sources loaded server-side.
16-
await page.getByRole("textbox", { name: "Paste source content..." })
16+
await page.getByPlaceholder("Paste source content...")
1717
.fill(`${marker} Tallinn ridership rose 14 percent after fares were removed. ${"Detailed ridership evidence. ".repeat(9_000)}`);
1818
await page.getByRole("button", { name: "Save to Library" }).click();
1919
await expect(page.getByText("Grounding Active")).toBeVisible();

‎e2e/full-stack/current-debate.spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ async function snap(page: Page, name: string) {
1818
async function addSource(page: Page, title: string, content: string) {
1919
await page.goto("/app/library");
2020
await page.getByRole("button", { name: "Add Source" }).click();
21-
await page.getByRole("textbox", { name: "Source title..." }).fill(title);
22-
await page.getByRole("textbox", { name: "Paste source content..." }).fill(content);
21+
await page.getByPlaceholder("Source title...").fill(title);
22+
await page.getByPlaceholder("Paste source content...").fill(content);
2323
await page.getByRole("button", { name: "Save to Library" }).click();
2424
await expect(page.getByRole("switch", { name: `Toggle ${title}` })).toBeChecked();
2525
}

‎e2e/full-stack/debate-context.spec.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ async function snap(page: Page, name: string) {
1818
async function addSource(page: Page, title: string, content: string) {
1919
await page.goto("/app/library");
2020
await page.getByRole("button", { name: "Add Source" }).click();
21-
await page.getByRole("textbox", { name: "Source title..." }).fill(title);
22-
await page.getByRole("textbox", { name: "Paste source content..." }).fill(content);
21+
await page.getByPlaceholder("Source title...").fill(title);
22+
await page.getByPlaceholder("Paste source content...").fill(content);
2323
await page.getByRole("button", { name: "Save to Library" }).click();
2424
await expect(page.getByRole("switch", { name: `Toggle ${title}` })).toBeChecked();
2525
}

0 commit comments

Comments
 (0)