mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 14:26:40 +02:00
✨ Replace overlapping bubbles with a bubble group (#6059)
This commit is contained in:
parent
0efbebd94f
commit
86022a967c
9 changed files with 299 additions and 46 deletions
|
@ -171,6 +171,25 @@ export class WorkspacePage extends BaseWebSocketPage {
|
|||
);
|
||||
}
|
||||
|
||||
async setupFileWithComments() {
|
||||
await this.mockRPC(
|
||||
"get-comment-threads?file-id=*",
|
||||
"workspace/get-comment-threads-unread.json",
|
||||
);
|
||||
await this.mockRPC(
|
||||
"get-file-fragment?file-id=*&fragment-id=*",
|
||||
"viewer/get-file-fragment-single-board.json",
|
||||
);
|
||||
await this.mockRPC(
|
||||
"get-comments?thread-id=*",
|
||||
"workspace/get-thread-comments.json",
|
||||
);
|
||||
await this.mockRPC(
|
||||
"update-comment-thread-status",
|
||||
"workspace/update-comment-thread-status.json",
|
||||
);
|
||||
}
|
||||
|
||||
async clickWithDragViewportAt(x, y, width, height) {
|
||||
await this.page.waitForTimeout(100);
|
||||
await this.viewport.hover({ position: { x, y } });
|
||||
|
@ -266,4 +285,10 @@ export class WorkspacePage extends BaseWebSocketPage {
|
|||
await this.tokenThemesSetsSidebar.getByText("Edit").click(clickOptions);
|
||||
await expect(this.tokenThemeUpdateCreateModal).toBeVisible();
|
||||
}
|
||||
|
||||
async showComments(clickOptions = {}) {
|
||||
await this.page
|
||||
.getByRole("button", { name: "Comments (C)" })
|
||||
.click(clickOptions);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue