Skip to content

Commit

Permalink
Merge pull request #249 from Lombiq/issue/NEST-386
Browse files Browse the repository at this point in the history
NEST-386: TestMediaOperationsAsync function is flaky
  • Loading branch information
wAsnk authored Jan 6, 2023
2 parents 7e2974d + 0b98ca3 commit 5852b3e
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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']"));
});

/// <summary>
Expand Down

0 comments on commit 5852b3e

Please sign in to comment.