Skip to content

Commit e32a147

Browse files
Port pin-persistence tests to unified-page routing
1 parent 78fca79 commit e32a147

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

frontend/tests/DisplayPage.spec.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -732,8 +732,7 @@ test.describe("DisplayPage (Proposal H, Step 1)", () => {
732732
...defaultHandlers
733733
);
734734
await loadPageWithDefaultBackend(page);
735-
await importText(page, "1 card 1\n1 card 2\n1 card 3");
736-
await page.getByRole("link", { name: "Editor" }).click();
735+
await importTextOnEditorLanding(page, "1 card 1\n1 card 2\n1 card 3");
737736
await page.getByTestId("page-preview-slot").first().click();
738737

739738
await page.getByTestId("display-sources-summary-label").click();
@@ -756,9 +755,7 @@ test.describe("DisplayPage (Proposal H, Step 1)", () => {
756755
await page.goto("/editor?server=http://127.0.0.1:8000", {
757756
waitUntil: "domcontentloaded",
758757
});
759-
await page.getByText("Choose Art").click();
760-
await importText(page, "1 card 1\n1 card 2\n1 card 3");
761-
await page.getByRole("link", { name: "Editor" }).click();
758+
await importTextOnEditorLanding(page, "1 card 1\n1 card 2\n1 card 3");
762759
await page.getByTestId("page-preview-slot").first().click();
763760

764761
// No click on the pin needed this time - it's sourced from localStorage on mount

0 commit comments

Comments
 (0)