Skip to content

Commit

Permalink
TASK: Adjust acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
markusguenther committed Mar 30, 2023
1 parent 5c0ca4f commit a7e70ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions Tests/IntegrationTests/pageModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ export class DimensionSwitcher {
.click(this.dimensionSwitcherFirstDimensionSelector)
.click(this.dimensionSwitcherFirstDimensionSelectorWithShallowDropDownContents.find('li').withText(name));
}

static async switchSingleDimension(name) {
await t
.click(this.dimensionSwitcher)
.click(ReactSelector('DimensionSelector'))
.click(ReactSelector('DimensionSelectorOption').withProps('option', {label: name}));
}
}

export class PublishDropDown {
Expand Down

0 comments on commit a7e70ee

Please sign in to comment.