Skip to content

Commit

Permalink
Added new tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jeawhanlee committed Jun 18, 2024
1 parent 765f903 commit 148c64a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/features/lcp-beacon-script.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@lcp @setup
@lcp @delaylcp @setup
Feature: Beacon script captures the right images.

Background:
Expand Down
8 changes: 4 additions & 4 deletions src/support/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,18 +209,18 @@ After(async function (this: ICustomWorld, { pickle, result }) {
});

/**
* Before each test scenario with the @lcp tag, performs setup tasks.
* Before each test scenario with the @delaylcp tag, performs setup tasks.
*/
Before({tags: '@lcp'}, async function (this: ICustomWorld) {
Before({tags: '@delaylcp'}, async function (this: ICustomWorld) {
// Install and activate the remote plugin
await installRemotePlugin('https://github.com/wp-media/wp-rocket-e2e-test-helper/raw/main/helper-plugin/rocket-lcp-delay.zip');
await activatePlugin('rocket-lcp-delay');
});

/**
* After each test scenario with the @lcp tag, performs teardown tasks.
* After each test scenario with the @delaylcp tag, performs teardown tasks.
*/
After({tags: '@lcp'}, async function (this: ICustomWorld) {
After({tags: '@delaylcp'}, async function (this: ICustomWorld) {
await uninstallPlugin('rocket-lcp-delay');
});

Expand Down

0 comments on commit 148c64a

Please sign in to comment.