diff --git a/Tests/IntegrationTests/Fixtures/1Dimension/switchingDimensions.e2e.js b/Tests/IntegrationTests/Fixtures/1Dimension/switchingDimensions.e2e.js index d50b5feb76..9fb4203aee 100644 --- a/Tests/IntegrationTests/Fixtures/1Dimension/switchingDimensions.e2e.js +++ b/Tests/IntegrationTests/Fixtures/1Dimension/switchingDimensions.e2e.js @@ -16,7 +16,7 @@ test('Switching dimensions', async t => { const otherPageName = 'Untranslated page'; await Page.goToPage(translatedPageName); - await DimensionSwitcher.switchLanguageDimension('Latvian'); + await DimensionSwitcher.switchSingleDimension('Latvian'); await t.click('#neos-NodeVariantCreationDialog-CreateEmpty'); await Page.waitForIframeLoading(); await t diff --git a/Tests/IntegrationTests/pageModel.js b/Tests/IntegrationTests/pageModel.js index 4bc3c927d8..4e5fad99ac 100644 --- a/Tests/IntegrationTests/pageModel.js +++ b/Tests/IntegrationTests/pageModel.js @@ -40,6 +40,12 @@ export class DimensionSwitcher { .click(this.dimensionSwitcherFirstDimensionSelector) .click(this.dimensionSwitcherFirstDimensionSelectorWithShallowDropDownContents.find('li').withText(name)); } + + static async switchSingleDimension(name) { + await t + .click(this.dimensionSwitcher) + .click(ReactSelector('DimensionSelectorOption').withProps('option', {label: name})); + } } export class PublishDropDown {