From 8b64c0615f7823743b766d8ced76a5ef8816e102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Gu=CC=88nther?= Date: Wed, 4 Dec 2024 20:01:29 +0100 Subject: [PATCH] TASK: Log the content tree state --- .../Fixtures/1Dimension/syncing.e2e.js | 10 +++++++++- Tests/IntegrationTests/utils.js | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Tests/IntegrationTests/Fixtures/1Dimension/syncing.e2e.js b/Tests/IntegrationTests/Fixtures/1Dimension/syncing.e2e.js index f12e666a16..4f51df0e0c 100644 --- a/Tests/IntegrationTests/Fixtures/1Dimension/syncing.e2e.js +++ b/Tests/IntegrationTests/Fixtures/1Dimension/syncing.e2e.js @@ -154,6 +154,7 @@ async function prepareContentElementConflictBetweenAdminAndEditor(t) { .switchToMainWindow(); await openContentTree(t); + await openContentTree(t); await t .click(Page.treeNode.withText('Content Collection (main)')) @@ -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'); } } diff --git a/Tests/IntegrationTests/utils.js b/Tests/IntegrationTests/utils.js index 5b480dc51f..e80c00fe8f 100644 --- a/Tests/IntegrationTests/utils.js +++ b/Tests/IntegrationTests/utils.js @@ -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); } }