Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

E2E Playwright - Add documentation how test actions/filters #10135

Closed
Tracked by #42413
gigitux opened this issue Jul 7, 2023 · 0 comments
Closed
Tracked by #42413

E2E Playwright - Add documentation how test actions/filters #10135

gigitux opened this issue Jul 7, 2023 · 0 comments
Assignees
Labels
focus: documentation This issue is a request for better documentation.

Comments

@gigitux
Copy link
Contributor

gigitux commented Jul 7, 2023

With #10036, I implemented a way to test actions/filters, creating and installing plugins on the fly. It is necessary to add documentation for this.

https://github.com/woocommerce/woocommerce-blocks/blob/92510d20e47dcfc2a46a7037daf522bfe9535b60/tests/e2e-pw/mocks/custom-plugins/readme.md/#L1-L2

@gigitux gigitux self-assigned this Jul 7, 2023
@gigitux gigitux added category: tests focus: documentation This issue is a request for better documentation. labels Jul 7, 2023
gigitux added a commit that referenced this issue Aug 10, 2023
* Add FrontendUtils class

* fix conflicts

* use locator

* restore click usage

* Product Button: Add E2E test

* fix util

* fix E2E tests

* remove comment

* Add E2E test to ensure that woocommerce_product_add_to_cart_text works

* update sideEffects array

* add zip and unzip as package

* fix wp-env configuration

* fix E2E test

* add report

* try now

* try now

* try now

* fix E2E test

* E2E: Add documentation for testing actions and filters. Fixes #10135 (#10206)

* update description

* fix label

* rename files

* make requestUtils private

* remove page.goto

* use toHaveCount

* use productsToDisplay variable

* fix E2E tests

* rename class utils

---------

Co-authored-by: Daniel Dudzic <daniel.dudzic@automattic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
focus: documentation This issue is a request for better documentation.
Projects
None yet
Development

No branches or pull requests

1 participant