Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions e2e/workspace.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ test("demo imports, exact cut edits survive switching, undo/redo and export", as
page.getByRole("button", { name: "Select cell 1", exact: true }),
).toHaveCount(0);
await page.getByRole("button", { name: "Undo", exact: true }).click();
await ready(page);
await page.locator(".tile-wall").evaluate((el) => (el.scrollTop = 0));
await expect(
page.getByRole("button", { name: "Select cell 1", exact: true }),
Expand All @@ -38,12 +39,14 @@ test("demo imports, exact cut edits survive switching, undo/redo and export", as
page.getByRole("button", { name: "Select cell 1", exact: true }),
).toHaveCount(0);
await page.getByRole("button", { name: "Undo", exact: true }).click();
await ready(page);
await page.locator(".tile-wall").evaluate((el) => (el.scrollTop = 0));
await expect(
page.getByRole("button", { name: "Select cell 1", exact: true }),
).toHaveText(count!);
await expect(page.locator(".tile-wave-canvas")).toBeVisible();
await page.getByRole("button", { name: "Redo", exact: true }).click();
await ready(page);
await expect(
page.getByRole("button", { name: "Select cell 1", exact: true }),
).toHaveCount(0);
Expand All @@ -58,6 +61,7 @@ test("demo imports, exact cut edits survive switching, undo/redo and export", as
page.getByRole("button", { name: "Select cell 1", exact: true }),
).toHaveCount(0);
await page.getByRole("button", { name: "Undo", exact: true }).click();
await ready(page);
await page.locator(".tile-wall").evaluate((el) => (el.scrollTop = 0));
await expect(
page.getByRole("button", { name: "Select cell 1", exact: true }),
Expand Down
Loading