wp-media / wp-rocket-e2e

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

Enhancement/refactor smoke test #142

Closed Mai-Saad closed 2 months ago

Mai-Saad commented 2 months ago

Description

This PR attempts to solve smoke test errors related to this.page.waitForLoadState('load', { timeout: 30000 }); and refactor where needed for logic

Note: still some tests are failing so it's WIP

Fixes #133 partially

Type of change

Detailed scenario

Sometimes tests are failing as this.page.waitForLoadState('load', { timeout: 30000 }); timeout so here we replaced some of waitforload with assertion + some logic refactor

Technical description

Documentation

New dependencies

No

Risks

No

Mandatory Checklist

Code validation

Code style

Additional Checks

Mai-Saad commented 2 months ago

3.17 Results on PR now https://filetransfer.io/data-package/tncWYOQg#link failed test is due to DB error (which shall be ignored) .. @wp-media/engineering-plugin-team can anyone please pull the branch and npm run test:smoke there to confirm results. Screenshot from 2024-09-18 11-58-35

Note: sometimes and probably with low internet connection, tests may fail and timeout

hanna-meda commented 2 months ago

@Mai-Saad, same results as with you on my end, 7 passed 1 failed, but a different one. Test results below: hannameda-wp-rocket-e2e-test-results-cucumber-report-html-2024-09-18-18_00_21.pdf

Screenshot 2024-09-18 at 18 04 22

MathieuLamiot commented 2 months ago

A couple of failing tests because of the already existing table errors. So I'd say good on my side. debug-roll-back-from-the-tools-tab.log debug-enable-all-features.log

A few notes:

Miraeld commented 2 months ago

It works on my side, with errors mentioned before by @MathieuLamiot . Good on my side too.