diff --git a/Lombiq.Tests.UI/Extensions/BasicOrchardFeaturesTestingUITestContextExtensions.cs b/Lombiq.Tests.UI/Extensions/BasicOrchardFeaturesTestingUITestContextExtensions.cs index 4a029917f..903c7184b 100644 --- a/Lombiq.Tests.UI/Extensions/BasicOrchardFeaturesTestingUITestContextExtensions.cs +++ b/Lombiq.Tests.UI/Extensions/BasicOrchardFeaturesTestingUITestContextExtensions.cs @@ -580,22 +580,14 @@ await context await context.ClickModalOkAsync(); - var fileNames = context.GetAll(By.CssSelector("#mediaContainerMain tbody tr .break-word")); - foreach (var fileName in fileNames) - { - fileName.Text.ShouldNotBe(imageName); - } + context.Missing(By.XPath("//span[text()=' Image.png ' and @class='break-word']")); var deleteFolderButton = context.Get(By.CssSelector("#folder-tree li.selected div.btn-group.folder-actions .svg-inline--fa.fa-trash")); await deleteFolderButton.ClickReliablyAsync(context); await context.ClickModalOkAsync(); - var folders = context.GetAll(By.CssSelector("#folder-tree ol li .folder-name")); - foreach (var folder in folders) - { - folder.Text.ShouldNotBe("Example Folder"); - } + context.Missing(By.XPath("//div[text()='Example Folder' and @class='folder-name ms-2']")); }); ///