Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.
This repository was 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

@sunyatasattva

Description

@sunyatasattva

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    block-type: product-queryIssues related to/affecting all product-query variations.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions