mirror of
https://github.com/penpot/penpot.git
synced 2025-05-13 09:36:40 +02:00
🐛 Fix comment loading crash
This commit is contained in:
parent
40fe6369cb
commit
1a7d60bb88
3 changed files with 51 additions and 0 deletions
23
frontend/playwright/ui/specs/render-wasm.spec.js
Normal file
23
frontend/playwright/ui/specs/render-wasm.spec.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
import { test, expect } from "@playwright/test";
|
||||
import { WorkspacePage } from "../pages/WorkspacePage";
|
||||
import { BaseWebSocketPage } from "../pages/BaseWebSocketPage";
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await WorkspacePage.init(page);
|
||||
await BaseWebSocketPage.mockRPC(
|
||||
page,
|
||||
"get-teams",
|
||||
"get-teams-render-wasm.json",
|
||||
);
|
||||
});
|
||||
|
||||
test("BUG 10867 - Crash when loading comments", async ({ page }) => {
|
||||
const workspacePage = new WorkspacePage(page);
|
||||
await workspacePage.setupEmptyFile();
|
||||
await workspacePage.goToWorkspace();
|
||||
|
||||
await workspacePage.showComments();
|
||||
await expect(
|
||||
workspacePage.rightSidebar.getByText("Show all comments"),
|
||||
).toBeVisible();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue