From 0ee68446706a620a318f2e6713c93dd606589521 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Wed, 9 Oct 2024 10:17:03 +0200 Subject: [PATCH] TASK: Hotfix e2e tests by skipping syncing tests and only run on chrome The syncing tests are flaky and create catchup errors rendering following tests also kaput: https://github.com/neos/neos-ui/pull/3769#pullrequestreview-2332466270ll thus they will be skipped for now. Also we click the `button` in chrome and not the `a` as the > The action target (...) is too small to be visible: 284px x 40px. --- .sauce/config.yml | 14 +++++++------- .../Fixtures/1Dimension/syncing.e2e.js | 2 ++ .../Fixtures/2Dimension/switchingSites.e2e.js | 8 ++++---- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.sauce/config.yml b/.sauce/config.yml index 6b465d7be3..5d836840ea 100644 --- a/.sauce/config.yml +++ b/.sauce/config.yml @@ -24,13 +24,13 @@ suites: - "Tests/IntegrationTests/Fixtures/*/*.e2e.js" platformName: "Windows 10" screenResolution: "1280x1024" - - name: "Tests in Firefox on MacOS" - # todo use chrome here and fix ci https://github.com/neos/neos-ui/issues/3591 - browserName: "firefox" - src: - - "Tests/IntegrationTests/Fixtures/*/*.e2e.js" - platformName: "macOS 13" - screenResolution: "1440x900" + # todo use chrome here and fix ci https://github.com/neos/neos-ui/issues/3591 (but even firefox fails in ci) + # - name: "Tests in Firefox on MacOS" + # browserName: "firefox" + # src: + # - "Tests/IntegrationTests/Fixtures/*/*.e2e.js" + # platformName: "macOS 13" + # screenResolution: "1440x900" npm: dependencies: - testcafe-react-selectors diff --git a/Tests/IntegrationTests/Fixtures/1Dimension/syncing.e2e.js b/Tests/IntegrationTests/Fixtures/1Dimension/syncing.e2e.js index 5a148b4b52..53655aa584 100644 --- a/Tests/IntegrationTests/Fixtures/1Dimension/syncing.e2e.js +++ b/Tests/IntegrationTests/Fixtures/1Dimension/syncing.e2e.js @@ -11,6 +11,8 @@ import { fixture`Syncing` .afterEach(() => checkPropTypes()); +fixture.skip`TODO Tests are flaky and create catchup errors rendering following tests also kaput: https://github.com/neos/neos-ui/pull/3769#pullrequestreview-2332466270`; + const contentIframeSelector = Selector('[name="neos-content-main"]', {timeout: 2000}); test('Syncing: Create a conflict state between two editors and choose "Discard all" as a resolution strategy during rebase', async t => { diff --git a/Tests/IntegrationTests/Fixtures/2Dimension/switchingSites.e2e.js b/Tests/IntegrationTests/Fixtures/2Dimension/switchingSites.e2e.js index f323f54eb2..2f9418b416 100644 --- a/Tests/IntegrationTests/Fixtures/2Dimension/switchingSites.e2e.js +++ b/Tests/IntegrationTests/Fixtures/2Dimension/switchingSites.e2e.js @@ -20,7 +20,7 @@ test('Switching from Neos.Test.OneDimension to Neos.Test.TwoDimensions and back' subSection('Switch to Neos.Test.TwoDimensions via main menu'); await t.click(Selector('#neos-MenuToggler')); - await t.click(Selector('[href*="twodimensions"]')); + await t.click(Selector('[href*="twodimensions"] button')); await t.expect(getUrl()).contains('twodimensions.localhost', 'Switch to Neos.Test.TwoDimensions was successful'); @@ -28,7 +28,7 @@ test('Switching from Neos.Test.OneDimension to Neos.Test.TwoDimensions and back' await waitForReact(30000); await Page.goToPage('Home'); await t.click(Selector('#neos-MenuToggler')); - await t.click(Selector('[href*="onedimension"]')); + await t.click(Selector('[href*="onedimension"] button')); await t.expect(getUrl()).contains('onedimension.localhost', 'Switch to Neos.Test.OneDimension was successful'); }); @@ -45,7 +45,7 @@ test('Switching from Neos.Test.TwoDimensions to Neos.Test.OneDimension and back' subSection('Switch to Neos.Test.OneDimension via main menu'); await t.click(Selector('#neos-MenuToggler')); - await t.click(Selector('[href*="onedimension"]')); + await t.click(Selector('[href*="onedimension"] button')); await t.expect(getUrl()).contains('onedimension.localhost', 'Switch to Neos.Test.OneDimension was successful'); @@ -53,7 +53,7 @@ test('Switching from Neos.Test.TwoDimensions to Neos.Test.OneDimension and back' await waitForReact(30000); await Page.goToPage('Home'); await t.click(Selector('#neos-MenuToggler')); - await t.click(Selector('[href*="twodimensions"]')); + await t.click(Selector('[href*="twodimensions"] button')); await t.expect(getUrl()).contains('twodimensions.localhost', 'Switch to Neos.Test.TwoDimensions was successful'); });