From 9f2d272695a1152b42e5068d16ebd351fa4464c2 Mon Sep 17 00:00:00 2001 From: Alexey Zinoviev Date: Wed, 16 Jul 2025 17:49:24 +0700 Subject: [PATCH] Qfix: qms tests (#9557) Signed-off-by: Alexey Zinoviev --- .../sanity/tests/model/documents/document-content-page.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qms-tests/sanity/tests/model/documents/document-content-page.ts b/qms-tests/sanity/tests/model/documents/document-content-page.ts index a159c9d1ea..44bec510d0 100644 --- a/qms-tests/sanity/tests/model/documents/document-content-page.ts +++ b/qms-tests/sanity/tests/model/documents/document-content-page.ts @@ -762,6 +762,13 @@ export class DocumentContentPage extends DocumentCommonPage { await this.page.getByText(text).click() await this.page.getByText(text).dblclick() + // NOTE: without the resize the menu popup might be placed in a wrong place initially + // and only update its position on the button click (MouseDown) which leads + // to the MouseUp land not on the button and the click handler is not triggered + // Resize event ensures that the menu popup is placed correctly before clicking + await this.page.evaluate(() => { + window.dispatchEvent(new Event('resize')) + }) await this.buttonAddMessageToText.click() await this.addMessage(message)