Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,13 @@ describe('Bulk Update', () => {
// The success toast is displayed
await browser.$(Selectors.BulkUpdateSuccessToast).waitForDisplayed();

const toastText = await browser
.$(Selectors.BulkUpdateSuccessToast)
.getText();
await browser.waitUntil(async () => {
const toastText = await browser
.$(Selectors.BulkUpdateSuccessToast)
.getText();
return toastText.includes('1 document has been updated.');
});

expect(toastText).to.contain('1 document has been updated.');
// We close the toast
await browser.clickVisible(Selectors.BulkUpdateSuccessToastDismissButton);

Expand Down