mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-17 18:05:42 +02:00
UBERF-12172 Video player fixes (#9467)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user