Fixed failing test (#16130)

This commit is contained in:
Andreas Zerbst
2024-04-24 08:59:18 +02:00
committed by GitHub
parent 7bbef2a584
commit aec90b2e58

View File

@@ -137,7 +137,7 @@ for (const listViewType of listViewTypes) {
expect(dataTypeData.values).toContainEqual(expectedDataTypeValues);
});
test(`can update Content App Icon`, async ({ umbracoApi, umbracoUi }) => {
test(`can update Content App Icon`, async ({ page, umbracoApi, umbracoUi }) => {
// Arrange
const iconValue = 'icon-activity';
const expectedDataTypeValues = {
@@ -147,7 +147,11 @@ for (const listViewType of listViewTypes) {
// Act
await umbracoUi.dataType.clickContentAppIconButton();
await umbracoUi.dataType.chooseContentAppIconByValue(iconValue);
// TODO: Uncomment one of the possible ways to select the icon. when the helpers are fixed
// await umbracoUi.dataType.clickLabelWithName(iconValue, true);
// await umbracoUi.dataType.chooseContentAppIconByValue(iconValue);
await page.getByLabel(iconValue).click({force: true});
await umbracoUi.dataType.clickSubmitButton();
await umbracoUi.dataType.clickSaveButton();
// Assert