From b96b32a87a693a268009f6973bacbb08520377c9 Mon Sep 17 00:00:00 2001 From: Alex Velichko Date: Thu, 14 Mar 2024 17:44:58 +0300 Subject: [PATCH] feat(test): updated Document public link revoke test (#4955) Signed-off-by: Alex Velichko --- tests/sanity/tests/documents/documents-link.spec.ts | 5 +++++ tests/sanity/tests/model/common-page.ts | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/tests/sanity/tests/documents/documents-link.spec.ts b/tests/sanity/tests/documents/documents-link.spec.ts index 43a53c4ec3..a7dc577d15 100644 --- a/tests/sanity/tests/documents/documents-link.spec.ts +++ b/tests/sanity/tests/documents/documents-link.spec.ts @@ -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() diff --git a/tests/sanity/tests/model/common-page.ts b/tests/sanity/tests/model/common-page.ts index e388c50453..e02f67a7c2 100644 --- a/tests/sanity/tests/model/common-page.ts +++ b/tests/sanity/tests/model/common-page.ts @@ -95,4 +95,8 @@ export class CommonPage { async selectMention (page: Page, mentionName: string): Promise { await page.locator('form.mentionPoup div.list-item span.name', { hasText: mentionName }).click() } + + async closePopup (page: Page): Promise { + await page.locator('div.popup button[id="card-close"]').click() + } }