Skip to content

Commit aec90b2

Browse files
authored
Fixed failing test (#16130)
1 parent 7bbef2a commit aec90b2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/DataType/ListView.spec.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ for (const listViewType of listViewTypes) {
137137
expect(dataTypeData.values).toContainEqual(expectedDataTypeValues);
138138
});
139139

140-
test(`can update Content App Icon`, async ({ umbracoApi, umbracoUi }) => {
140+
test(`can update Content App Icon`, async ({ page, umbracoApi, umbracoUi }) => {
141141
// Arrange
142142
const iconValue = 'icon-activity';
143143
const expectedDataTypeValues = {
@@ -147,7 +147,11 @@ for (const listViewType of listViewTypes) {
147147

148148
// Act
149149
await umbracoUi.dataType.clickContentAppIconButton();
150-
await umbracoUi.dataType.chooseContentAppIconByValue(iconValue);
150+
// TODO: Uncomment one of the possible ways to select the icon. when the helpers are fixed
151+
// await umbracoUi.dataType.clickLabelWithName(iconValue, true);
152+
// await umbracoUi.dataType.chooseContentAppIconByValue(iconValue);
153+
await page.getByLabel(iconValue).click({force: true});
154+
await umbracoUi.dataType.clickSubmitButton();
151155
await umbracoUi.dataType.clickSaveButton();
152156

153157
// Assert

0 commit comments

Comments
 (0)