wp-media / wp-rocket-e2e

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

Clean up shall consider using 2020 whenever we change the theme while testing #173

Open Mai-Saad opened 5 days ago

Mai-Saad commented 5 days ago

Some tests may change active theme like in delayjs tests. At the same time, our LCP results are based on 2020 as an active theme.

Thus As a QA engineer, I'd like to consider the test clean-up to reset the system to its original state like before the test to have consistent results.

hanna-meda commented 5 days ago

Note: When completing this task, please also consider removing the following line, as it will no longer be necessary there. Thank you.

jeawhanlee commented 4 days ago

Scope a solution ✅

Estimate the effort ✅ [S]

Mai-Saad commented 4 days ago

And lastly just like @hanna-meda stated above, remove this line as we will now activate 2020 theme before each scenario.

@jeawhanlee @hanna-meda which theme do we switch to here? is this step just validating that new theme is activated successfully after switching?

hanna-meda commented 1 day ago

which theme do we switch to here? is this step just validating that new theme is activated successfully after switching?

@Mai-Saad Here, as last step of scenario, we switch back to the 2020 theme to ensure the environment is left with the default theme. However, since a clean-up process will now handle this, this step becomes obsolete.