From cc5fc3aef1b255682ccf25c8c8fdd51c8240c613 Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Thu, 30 Jan 2025 13:19:13 +0300 Subject: [PATCH] Added UI waiting in the 406 QMS test (#7827) Signed-off-by: Alexander Platov --- .../sanity/tests/model/documents/document-content-page.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 9ca1a3e759..62f6c18ebb 100644 --- a/qms-tests/sanity/tests/model/documents/document-content-page.ts +++ b/qms-tests/sanity/tests/model/documents/document-content-page.ts @@ -488,7 +488,8 @@ export class DocumentContentPage extends DocumentCommonPage { await this.page.getByRole('button', { name: 'AQ Admin Qara' }).click() await this.page.getByRole('button', { name: 'AJ Appleseed John' }).nth(1).click() await this.page.keyboard.press('Escape') - await this.page.getByRole('button', { name: 'Create' }).click() + await expect(this.page.locator('.selectPopup')).not.toBeAttached() + await this.page.getByRole('button', { name: 'Create' }).click({ timeout: 3000 }) } async checkIfUserCanCreateDocument (spaceName: string): Promise {