feat(test): updated Document public link revoke test (#4955)

Signed-off-by: Alex Velichko <alex@hardcoreeng.com>
This commit is contained in:
Alex Velichko 2024-03-14 17:44:58 +03:00 committed by GitHub
parent ca208fc324
commit b96b32a87a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -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()

View File

@ -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()
}
}