wp-media / wp-rocket-e2e

Playwright E2E testing repo
GNU General Public License v3.0
0 stars 0 forks source link

3.17 - Adapt LCP tests after refactor of beacon #124

Closed Miraeld closed 1 month ago

Miraeld commented 2 months ago

Description

After refactoring the beacon script within WP-Rocket (https://github.com/wp-media/wp-rocket/issues/6764) the test won't pass as some classes have changed.

Scope a solution

https://github.com/wp-media/wp-rocket-e2e/blob/182f32cd0a71504df2c62e6b7b5d9641bd53544d/src/support/steps/lcp-beacon-script.ts#L72 should be changed to

                const beacon = document.querySelector('[data-name="wpr-wpr-beacon"]');
Mai-Saad commented 2 months ago

After CR if e2e tests pass then we can merge