wp-media / wp-rocket-e2e

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

DJS smoke test with different plugins #49

Open Mai-Saad opened 8 months ago

Mai-Saad commented 8 months ago

Is your feature request related to a problem? Please describe. Sometimes, if certain plugin is activated with delay js we can have console error. Will be great to do smoke test on DJS when enable specific plugin

Describe the solution you'd like Scenario1: Shouldn't cause console error when enabling Delay JS with different plugins Given Delay JS is enabled When plugin 'x' is activated And visit the home page And move the mouse Then no console error different than nowprocket page And no visual regression

Scenario2: Should the mobile menu be closed by default While Delay JS and 'x' plugin are enabled Given Delay JS is enabled And Separate mobile cache is enabled When plugin 'x' is activated And visit the home page in mobile view Then the mobile menu shall be closed by default

Scenario3: Should the mobile menu work While Delay JS and 'x' plugin are enabled Given Delay JS is enabled And Separate mobile cache is enabled When plugin 'x' is activated And visit the home page in mobile view Then the mobile menu shall be closed by default And click on the mobile menu Then the menu shall expand as same as in nowprocket

Scenario4: Should links be clickable While Delay JS is enabled and 'x' plugin is activated Given Delay JS is enabled And Separate mobile cache is enabled When plugin 'x' is activated And visit the home page in mobile view And click on the link in the page Then the page navigated to the new page

Additional context Add any other context or screenshots about the feature request here.