mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 09:16:38 +02:00
🐛 Fix problem opening url when page-id didn't exist (#5833)
Co-authored-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
parent
ceb90cd9e0
commit
8fe1271690
3 changed files with 18 additions and 4 deletions
|
@ -15,6 +15,17 @@ test("User loads worskpace with empty file", async ({ page }) => {
|
|||
await expect(workspacePage.pageName).toHaveText("Page 1");
|
||||
});
|
||||
|
||||
test("User opens a file with a bad page id", async ({ page }) => {
|
||||
const workspacePage = new WorkspacePage(page);
|
||||
await workspacePage.setupEmptyFile(page);
|
||||
|
||||
await workspacePage.goToWorkspace({
|
||||
pageId: "badpage",
|
||||
});
|
||||
|
||||
await expect(workspacePage.pageName).toHaveText("Page 1");
|
||||
});
|
||||
|
||||
test("User receives presence notifications updates in the workspace", async ({
|
||||
page,
|
||||
}) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue