V16/hotfix/ensure self destroy before clean up (#19367)

* move destroy to top

* clean up example

* use the unprovide method when disconnecting
This commit is contained in:
Niels Lyngsø
2025-05-21 11:32:34 +02:00
committed by GitHub
parent 2b714d3022
commit 62cedeec13
4 changed files with 16 additions and 17 deletions

View File

@@ -39,7 +39,7 @@ test('can create content with the document link', {tag: '@smoke'}, async ({umbra
await umbracoUi.content.clickAddMultiURLPickerButton();
await umbracoUi.content.clickDocumentLinkButton();
await umbracoUi.content.selectLinkByName(linkedDocumentName);
await umbracoUi.content.clickButtonWithName('Choose');
await umbracoUi.content.clickChooseModalButton();
await umbracoUi.content.clickAddButton();
await umbracoUi.content.clickSaveButton();
@@ -87,7 +87,7 @@ test('can publish content with the document link', async ({umbracoApi, umbracoUi
await umbracoUi.content.clickSaveAndPublishButton();
// Assert
//await umbracoUi.content.doesSuccessNotificationsHaveCount(2);
//await umbracoUi.content.doesSuccessNotificationsHaveCount(2);
await umbracoUi.content.isErrorNotificationVisible(false);
expect(await umbracoApi.document.doesNameExist(contentName)).toBeTruthy();
const contentData = await umbracoApi.document.getByName(contentName);