EQMS-1635 Add generic action for copying link (#9668)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2025-08-12 22:20:05 +07:00
committed by GitHub
parent 8fc81ac57c
commit 7d0034c123
26 changed files with 97 additions and 48 deletions
@@ -253,7 +253,7 @@ test.describe('Documents tests', () => {
await documentsPage.clickOnButtonCreateDocument()
await documentsPage.createDocument(newDocument)
await documentsPage.selectMoreActionOfDocument(newDocument.title, 'Lock')
await documentsPage.selectMoreActionOfDocument(newDocument.title, 'Copy document URL to clipboard')
await documentsPage.selectMoreActionOfDocument(newDocument.title, 'Copy link')
await context.grantPermissions(['clipboard-read'])
const handle = await page.evaluateHandle(() => navigator.clipboard.readText())
const clipboardContent = await handle.jsonValue()