mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 04:06:38 +02:00
✨ Backport and merge migrations from staging (#5681)
This commit is contained in:
parent
48132711b6
commit
71560c0a53
6 changed files with 64 additions and 19 deletions
|
@ -307,3 +307,16 @@ test("Copy/paste properties", async ({ page, context }) => {
|
|||
await page.getByText("Copy/Paste as").hover();
|
||||
await page.getByText("Paste properties").click();
|
||||
});
|
||||
|
||||
test("[Taiga #9929] Paste text in workspace", async ({ page, context }) => {
|
||||
const workspacePage = new WorkspacePage(page);
|
||||
await workspacePage.setupEmptyFile(page);
|
||||
await workspacePage.goToWorkspace();
|
||||
await context.grantPermissions(["clipboard-read", "clipboard-write"]);
|
||||
await page.evaluate(() => navigator.clipboard.writeText("Lorem ipsum dolor"));
|
||||
await workspacePage.viewport.click({ button: "right" });
|
||||
await page.getByText("PasteCtrlV").click();
|
||||
await workspacePage.viewport
|
||||
.getByRole("textbox")
|
||||
.getByText("Lorem ipsum dolor");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue