🐛 Fix view modem forward button not working

This commit is contained in:
Alejandro Alonso 2025-01-24 10:40:45 +01:00
parent cf25614afb
commit cf53e0d233
6 changed files with 434 additions and 3 deletions

View 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/);
});