wp-media / wp-rocket-e2e

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

"Should links be clickable While Delay JS is enabled" is always failing because of waiting for getByRole('link', { name: 'About Us' }) #167

Open MathieuLamiot opened 6 days ago

jeawhanlee commented 4 days ago

@MathieuLamiot On this one, I'm not sure there's anything to be done here, the reason this is failing is because the delayjs test requires specific scripts:

I ran npm run test:delayjs:flatsome on the remote desktop and it passes.

MathieuLamiot commented 4 days ago

We need to do something to don't have a failed test:

In any case, something needs to be done.

jeawhanlee commented 4 days ago

We can encapsulate this kind of test to be run with a single command like we do for WP Rocket here. That would be a straight forward solution.

jeawhanlee commented 3 days ago

Scope a solution ✅

There are 2 ways I see to handle this

Method 1

Create a new script

In https://github.com/wp-media/wp-rocket-e2e/blob/221c9d21605df18c9a96cb65509f71480f01cefa/package.json

Method 2

In https://github.com/wp-media/wp-rocket-e2e/blob/221c9d21605df18c9a96cb65509f71480f01cefa/package.json#L13

Estimate the effort [XS]