From 6568c4a3d11171bdb7abef2214933fa31b483ec5 Mon Sep 17 00:00:00 2001 From: Tomas Kikutis Date: Mon, 23 Oct 2023 14:03:16 +0200 Subject: [PATCH] wait for button before clicking --- e2e/client/specs/authoring_spec.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/e2e/client/specs/authoring_spec.ts b/e2e/client/specs/authoring_spec.ts index 83dd4f3720..03c71f4a34 100644 --- a/e2e/client/specs/authoring_spec.ts +++ b/e2e/client/specs/authoring_spec.ts @@ -663,7 +663,12 @@ describe('authoring', () => { workspace.selectDesk('XEditor3 Desk'); // has media gallery in content profile el(['content-create']).click(); - el(['content-create-dropdown']).element(by.buttonText('editor3 template')).click(); + + const templateBtn = el(['content-create-dropdown']).element(by.buttonText('editor3 template')); + + browser.wait(ECE.elementToBeClickable(templateBtn)); + + templateBtn.click(); browser.wait(ECE.visibilityOf(el(['authoring-field--media-gallery', 'media-gallery--upload-placeholder']))); expect(ECE.hasElementCount(els(['authoring-field--media-gallery', 'media-gallery-image']), 0)()).toBe(true);