Skip to content

Commit

Permalink
PR modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Khadreal committed Sep 26, 2024
1 parent 5694b41 commit e2f881d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/features/ll-lcp.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Feature: Lazyload with LCP

Background:
Given I am logged in
And delete 'wp-rocket' plugin
And plugin is installed 'new_release'
And plugin 'wp-rocket' is activated
When I go to 'wp-admin/options-general.php?page=wprocket#dashboard'
Expand Down
3 changes: 3 additions & 0 deletions src/support/steps/imagify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { ICustomWorld } from "../../common/custom-world";

import { Given } from '@cucumber/cucumber';
import { IMAGIFY_INFOS } from "../../../config/wp.config";
import {expect} from "@playwright/test";

Given('Imagify is set up', async function (this: ICustomWorld) {
await this.utils.gotoImagify();
Expand All @@ -25,4 +26,6 @@ Given('display next-gen is enabled on imagify', async function (this: ICustomWor

// Click the submit button to save the changes
await this.page.click('input#submit');

await expect(this.page.getByText('Settings saved.')).toBeVisible();
});
3 changes: 2 additions & 1 deletion utils/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ export async function isPluginInstalled(name: string): Promise<boolean> {
}

/**
* Delete a plugin if exist
* Delete a plugin if exist.
* Note: this is not ideal for wpr or imagify plugins as it doesn't delete DB data which relies on uninstall hook.
* @function
* @name deletePlugin
* @async
Expand Down

0 comments on commit e2f881d

Please sign in to comment.