Remove success notification after file rename (#19149)

This commit is contained in:
Mads Rasmussen
2025-04-28 10:39:06 +02:00
committed by GitHub
parent 012480f396
commit bd921ca9e0
4 changed files with 3 additions and 9 deletions

View File

@@ -82,7 +82,7 @@ test('can rename a partial view', {tag: '@smoke'}, async ({umbracoApi, umbracoUi
await umbracoUi.partialView.rename(partialViewName);
// Assert
await umbracoUi.partialView.doesSuccessNotificationHaveText(NotificationConstantHelper.success.renamed);
await umbracoUi.partialView.isErrorNotificationVisible(false);
expect(await umbracoApi.partialView.doesNameExist(partialViewFileName)).toBeTruthy();
expect(await umbracoApi.partialView.doesNameExist(wrongPartialViewFileName)).toBeFalsy();
// Verify the old partial view is NOT displayed under the Partial Views section

View File

@@ -100,7 +100,7 @@ test('can rename a script', async ({umbracoApi, umbracoUi}) => {
await umbracoUi.script.rename(scriptName);
// Assert
await umbracoUi.script.doesSuccessNotificationHaveText(NotificationConstantHelper.success.renamed);
await umbracoUi.script.isErrorNotificationVisible(false);
expect(await umbracoApi.script.doesNameExist(scriptName)).toBeTruthy();
expect(await umbracoApi.script.doesNameExist(wrongScriptName)).toBeFalsy();
});

View File

@@ -103,7 +103,7 @@ test('can rename a stylesheet', {tag: '@smoke'}, async ({umbracoApi, umbracoUi})
await umbracoUi.stylesheet.rename(stylesheetName);
// Assert
await umbracoUi.stylesheet.doesSuccessNotificationHaveText(NotificationConstantHelper.success.renamed);
await umbracoUi.stylesheet.isErrorNotificationVisible(false);
expect(await umbracoApi.stylesheet.doesNameExist(stylesheetName)).toBeTruthy();
expect(await umbracoApi.stylesheet.doesNameExist(wrongStylesheetName)).toBeFalsy();
});