Skip to content

Commit

Permalink
TASK: Log the content tree state
Browse files Browse the repository at this point in the history
  • Loading branch information
markusguenther committed Dec 5, 2024
1 parent 520b6fa commit 22183a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion Tests/IntegrationTests/Fixtures/1Dimension/syncing.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ async function prepareContentElementConflictBetweenAdminAndEditor(t) {
.switchToMainWindow();

await openContentTree(t);
await openContentTree(t);

await t
.click(Page.treeNode.withText('Content Collection (main)'))
Expand Down Expand Up @@ -400,8 +401,15 @@ async function assertThatWeCannotSeePageInTree(t, pageTitle) {
async function openContentTree(t) {
const contentTree = ReactSelector('ToggleContentTree');
const isPanelOpen = await contentTree.getReact(({props}) => props.isPanelOpen);
if (!isPanelOpen) {
console.log('Opening content tree');
} else {
console.log('Content tree is already open');
}

if (!isPanelOpen) {
await t.click(Selector('#neos-ContentTree-ToggleContentTree'));
await t
.pressKey('t')
.pressKey('c');
}
}
2 changes: 1 addition & 1 deletion Tests/IntegrationTests/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export async function typeTextInline(t, selector, text, switchToIframe = true) {
.selectEditableContent(lastEditableElement, lastEditableElement)
.pressKey(keyList.join(' '));
} catch (e) {
console.log(e);
// console.log(e);
}
}

Expand Down

0 comments on commit 22183a7

Please sign in to comment.