Skip to content

Commit

Permalink
Wait for page load to complete
Browse files Browse the repository at this point in the history
  • Loading branch information
jeawhanlee committed Sep 19, 2024
1 parent 70267a3 commit ff22ddb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/support/steps/performance-hints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ When('clear performance hints for this URL is clicked in admin bar', async funct
await this.page.locator('#wp-admin-bar-wp-rocket').hover();
await this.page.waitForSelector('#wp-admin-bar-clear-performance-hints-data-url', { state: 'visible' });
await this.page.locator('#wp-admin-bar-clear-performance-hints-data-url').click();
await this.page.waitForLoadState('load', { timeout: 30000 });
});

/*
Expand Down

0 comments on commit ff22ddb

Please sign in to comment.