Skip to content

Commit

Permalink
wait for button before clicking
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaskikutis committed Oct 23, 2023
1 parent efb0a3e commit 6568c4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion e2e/client/specs/authoring_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6568c4a

Please sign in to comment.