Skip to content

Commit

Permalink
PR reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
Khadreal committed Oct 28, 2024
1 parent 4ed6dd2 commit 1a6f4a7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions utils/page-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,10 @@ export class PageUtils {

// Remove WP Rocket from UI if on local run is explicitly parsed.
if ( process.env.npm_config_env !== undefined && process.env.npm_config_env === 'local' ) {
// Start the process to remove wp-rocket.
await this.visitPage('wp-admin');
await this.auth();

await this.removeWprViaUi();
}
}
Expand All @@ -592,9 +596,6 @@ export class PageUtils {
* @return {Promise<void>} Promise that resolves after the uninstallation process is complete.
*/
public removeWprViaUi = async (): Promise<void> => {
// Start the process to remove wp-rocket.
await this.visitPage('wp-admin');

// Confirm Dialog Box.
this.page.on('dialog', async(dialog) => {
expect(dialog.type()).toContain('confirm');
Expand Down

0 comments on commit 1a6f4a7

Please sign in to comment.