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

Product Query [3]: [Tests] Add E2E tests for the FSE functionalities #7629

Closed
Tracked by #42616
sunyatasattva opened this issue Nov 8, 2022 · 0 comments · Fixed by #7641
Closed
Tracked by #42616

Product Query [3]: [Tests] Add E2E tests for the FSE functionalities #7629

sunyatasattva opened this issue Nov 8, 2022 · 0 comments · Fixed by #7641
Labels
block-type: product-query Issues related to/affecting all product-query variations.

Comments

@sunyatasattva
Copy link
Contributor

sunyatasattva commented Nov 8, 2022

E2E tests should test at least these paths:

Editor side:

  • When the toggle is enabled, all filters are disabled and can't be chosen anymore. If they were chosen before, they are now reset.
  • Toggle should not be available inside non-FSE pages and posts.

Front-end side:

  • It works in combination with the Product Search template.
  • It works in combination with the Products by Category template.
  • It works in combination with the Product Catalog template.
  • It works in combination with the Products by Tag template.

Note that this issue is not supposed to E2E test filters.

Old specs

These specs only apply if we do a custom implementation of “Inherit Query from Template”:

Editor side:

  • When the toggle is enabled, taxonomies are disabled and can't be chosen anymore from the filters. If they were chosen before, they are now reset.
  • When the toggle is enabled, and we are in FSE templates, the correct preview is shown.

Front-end side:

  • More specific settings can override the global query.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block-type: product-query Issues related to/affecting all product-query variations.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant