Add test for #7805

This commit is contained in:
Belén Albeza 2024-06-07 13:44:54 +02:00
parent 96b7fb7f12
commit 724bc24063
4 changed files with 299 additions and 4 deletions

View file

@ -33,10 +33,8 @@ export class ViewerPage extends BaseWebSocketPage {
super(page);
}
async goToViewer() {
await this.page.goto(
`/#/view/${ViewerPage.anyFileId}?page-id=${ViewerPage.anyPageId}&section=interactions&index=0`,
);
async goToViewer({ fileId = ViewerPage.anyFileId, pageId = ViewerPage.anyPageId } = {}) {
await this.page.goto(`/#/view/${fileId}?page-id=${pageId}&section=interactions&index=0`);
this.#ws = await this.waitForNotificationsWebSocket();
await this.#ws.mockOpen();