Added complete e2e tests automation framework #3634
Closed
+961
−350
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Existing E2E tests were only being run and tested on the client side , but not tested if they got synced to Meta properly. This was done by the QA team manually as we did not have any proper framework to do this automatically.
This change enables the team to do just that, by introducing a framework and two critical e2e tests (simple product creation, variable product creation) using the framework to test everything end to end. More tests that are run manually currently can be automated using the same framework.
Changes -
Updated the plugin installation to use the required config to connect to a test Meta Catalog. This enables the sync.
Fixed the failing e2e tests and updated the tests (to use github_run_id to uniquely identify products from a run and avoid collision) to verify the sync entirely using a Validator
Added a Validator that just takes a productId and verifies it completely e2e
Finally after validation, clean up the product from Meta Catalog.
Type of change
Checklist
Changelog entry
added QA automation framework to completely automate e2e tests.
Test Plan
https://github.com/facebook/facebook-for-woocommerce/actions/runs/17991535339
Screenshots
Before
NA
After
e2e-tests-validated2.mov