mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 09:36:37 +02:00
✨ Add test for #7805
This commit is contained in:
parent
96b7fb7f12
commit
724bc24063
4 changed files with 299 additions and 4 deletions
|
@ -33,10 +33,8 @@ export class ViewerPage extends BaseWebSocketPage {
|
|||
super(page);
|
||||
}
|
||||
|
||||
async goToViewer() {
|
||||
await this.page.goto(
|
||||
`/#/view/${ViewerPage.anyFileId}?page-id=${ViewerPage.anyPageId}§ion=interactions&index=0`,
|
||||
);
|
||||
async goToViewer({ fileId = ViewerPage.anyFileId, pageId = ViewerPage.anyPageId } = {}) {
|
||||
await this.page.goto(`/#/view/${fileId}?page-id=${pageId}§ion=interactions&index=0`);
|
||||
|
||||
this.#ws = await this.waitForNotificationsWebSocket();
|
||||
await this.#ws.mockOpen();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue