mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-17 18:05:42 +02:00
EQMS-1635 Add generic action for copying link (#9668)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user