Fixes the acceptance tests "Content with contentpicker"

This commit is contained in:
Bjarke Berg
2021-06-23 09:10:40 +02:00
parent 8a810e698c
commit 6bd2f7f696

View File

@@ -605,7 +605,7 @@ context('Content', () => {
cy.umbracoEditorHeaderName('ContentPickerContent');
cy.get('.umb-node-preview-add').click();
// Should really try and find a better way to do this, but umbracoTreeItem tries to click the content pane in the background
cy.get('[ng-if="vm.treeReady"] > .umb-tree > [ng-if="!tree.root.containsGroups"] > .umb-animated > .umb-tree-item__inner').click();
cy.get('[ng-if="vm.treeReady"] > .umb-tree .umb-tree-item__inner').click();
// We have to wait for the picked content to show up or it wont be added.
cy.get('.umb-node-preview__description').should('be.visible');
//save and publish