mirror of
https://github.com/penpot/penpot.git
synced 2025-05-28 13:16:12 +02:00
🐛 Fix view modem forward button not working
This commit is contained in:
parent
cf25614afb
commit
cf53e0d233
6 changed files with 434 additions and 3 deletions
26
frontend/playwright/ui/specs/viewer-content.spec.js
Normal file
26
frontend/playwright/ui/specs/viewer-content.spec.js
Normal file
|
@ -0,0 +1,26 @@
|
|||
import { test, expect } from "@playwright/test";
|
||||
import { ViewerPage } from "../pages/ViewerPage";
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await ViewerPage.init(page);
|
||||
});
|
||||
|
||||
const multipleBoardsFileId = "dd5cc0bb-91ff-81b9-8004-77df9cd3edb0";
|
||||
const multipleBoardsPageId = "dd5cc0bb-91ff-81b9-8004-77df9cd3edb3";
|
||||
|
||||
test("Navigate with arrows", async ({ page }) => {
|
||||
const viewer = new ViewerPage(page);
|
||||
await viewer.setupLoggedInUser();
|
||||
await viewer.setupFileWithMultipleBoards(viewer);
|
||||
|
||||
await viewer.goToViewer({
|
||||
fileId: multipleBoardsFileId,
|
||||
pageId: multipleBoardsPageId,
|
||||
});
|
||||
|
||||
const nextButton = viewer.page.getByRole("button", {
|
||||
name: "Next",
|
||||
});
|
||||
await nextButton.click();
|
||||
await expect(viewer.page).toHaveURL(/&index=1/);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue