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 {