mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
feat(test): updated Document public link revoke test (#4955)
Signed-off-by: Alex Velichko <alex@hardcoreeng.com>
This commit is contained in:
parent
ca208fc324
commit
b96b32a87a
@ -29,6 +29,11 @@ test.describe('Documents link tests', () => {
|
||||
const documentContentPage = new DocumentContentPage(page)
|
||||
await documentContentPage.executeMoreAction('Public link')
|
||||
|
||||
// remove after UBERF-5994 fixed
|
||||
await documentContentPage.closePopup(page)
|
||||
await page.reload({ waitUntil: 'commit' })
|
||||
await documentContentPage.executeMoreAction('Public link')
|
||||
|
||||
const publicLinkPopup = new PublicLinkPopup(page)
|
||||
const link = await publicLinkPopup.getPublicLink()
|
||||
|
||||
|
@ -95,4 +95,8 @@ export class CommonPage {
|
||||
async selectMention (page: Page, mentionName: string): Promise<void> {
|
||||
await page.locator('form.mentionPoup div.list-item span.name', { hasText: mentionName }).click()
|
||||
}
|
||||
|
||||
async closePopup (page: Page): Promise<void> {
|
||||
await page.locator('div.popup button[id="card-close"]').click()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user