Skip to content

Commit

Permalink
Tests: Change the trigger wchich finishes after test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Jul 31, 2018
1 parent aecf753 commit 384cf5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/support/setup-test-framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ afterAll( async () => {
await page.select( '#bulk-action-selector-top', 'trash' );
// Submit the form to send all draft/scheduled/published posts to the trash.
await page.click( '#doaction' );
await page.waitForNavigation();
await page.waitForXPath(
'//*[contains(@class, "updated notice")]/p[contains(text(), "moved to the Trash.")]'
);
}

disablePageDialogAccept();
Expand Down

0 comments on commit 384cf5e

Please sign in to comment.