UBERF-12172 Video player fixes (#9467)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2025-07-04 23:11:06 +07:00
committed by GitHub
parent 8c58696a86
commit ad61c7a87f
8 changed files with 22 additions and 14 deletions
@@ -201,11 +201,10 @@ test.describe('Content in the Documents tests', () => {
await test.step('User can open image on current page', async () => {
await documentContentPage.clickImageFullscreenButton()
await expect(documentContentPage.imageInPopup()).toBeVisible()
await documentContentPage.fullscreenButton().click()
await expect(documentContentPage.fullscreenImage()).toBeVisible()
await expect(documentContentPage.image()).toBeVisible()
await expect(async () => {
await documentContentPage.page.keyboard.press('Escape')
await expect(documentContentPage.fullscreenImage()).toBeHidden()
await expect(documentContentPage.image()).toBeHidden()
await expect(documentContentPage.imageInPopup()).toBeHidden()
}).toPass(retryOptions)
})
@@ -22,6 +22,7 @@ export class DocumentContentPage extends CommonPage {
readonly firstImageInDocument = (): Locator => this.page.locator('.textInput .text-editor-image-container img')
readonly tooltipImageTools = (): Locator => this.page.locator('.tippy-box')
readonly image = (): Locator => this.page.locator('.popup img')
readonly fullscreenImage = (): Locator => this.page.locator('.popup.fullsize img')
readonly fullscreenButton = (): Locator => this.page.locator('.popup #btnDialogFullScreen')
readonly imageInPopup = (): Locator => this.page.locator('.popup img')