Skip to content

Commit

Permalink
Merge pull request #125 from wp-media/enhancement/124-change-lcp-beac…
Browse files Browse the repository at this point in the history
…on-name

Closes #124: Adapt the LCP test for latest refactor of beacon script
  • Loading branch information
Miraeld authored Jul 30, 2024
2 parents 3d53029 + 28ca927 commit b6606a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/support/steps/lcp-beacon-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ When('I visit the urls for {string}', async function (this: ICustomWorld, formFa

// Wait the beacon to add an attribute `beacon-complete` to true before fetching from DB.
await this.page.waitForFunction(() => {
const beacon = document.querySelector('[data-name="wpr-lcp-beacon"]');
const beacon = document.querySelector('[data-name="wpr-wpr-beacon"]');
return beacon && beacon.getAttribute('beacon-completed') === 'true';
});

Expand Down

0 comments on commit b6606a9

Please sign in to comment.