Backport and merge migrations from staging (#5681)

This commit is contained in:
Andrey Antukh 2025-01-24 19:11:03 +01:00 committed by GitHub
parent 48132711b6
commit 71560c0a53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 64 additions and 19 deletions

View file

@ -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");
});