From 4ed6dd232515f2fa58770b08c6f8251b5e4551d5 Mon Sep 17 00:00:00 2001 From: Opeyemi Ibrahim Date: Thu, 24 Oct 2024 10:52:49 +0100 Subject: [PATCH] Modify delete plugin method, remove auth from method -- :close #163 --- src/support/steps/delete-plugin.ts | 3 ++- utils/page-utils.ts | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/support/steps/delete-plugin.ts b/src/support/steps/delete-plugin.ts index 9ca3718..74aaa63 100644 --- a/src/support/steps/delete-plugin.ts +++ b/src/support/steps/delete-plugin.ts @@ -30,8 +30,9 @@ When('I delete plugin', async function (this: ICustomWorld) { } // Delete WPR. - await this.page.locator( '#delete-wp-rocket' ).click(); + //await this.page.locator( '#delete-wp-rocket' ).click(); + await this.utils.removeWprViaUi(); }); /** diff --git a/utils/page-utils.ts b/utils/page-utils.ts index 8efd13f..6c58eb6 100644 --- a/utils/page-utils.ts +++ b/utils/page-utils.ts @@ -594,7 +594,6 @@ export class PageUtils { public removeWprViaUi = async (): Promise => { // Start the process to remove wp-rocket. await this.visitPage('wp-admin'); - await this.auth(); // Confirm Dialog Box. this.page.on('dialog', async(dialog) => {