Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress tests #2614

Closed
30 of 46 tasks
felipeelia opened this issue Feb 25, 2022 · 1 comment · Fixed by #2615, #2864 or #3188
Closed
30 of 46 tasks

Cypress tests #2614

felipeelia opened this issue Feb 25, 2022 · 1 comment · Fixed by #2615, #2864 or #3188

Comments

@felipeelia
Copy link
Member

felipeelia commented Feb 25, 2022

Is your enhancement related to a problem? Please describe.

The following tests need to be written in Cypress:

General

New Sync

  • Check if post search works with EP during regular sync
  • Check if post search does not work with EP during full sync

Post Search

  • Check if term edits also update related posts

Password Protected Content

  • If the user is an admin, they should be able to see the post title displayed on the front page, and on search results.
  • If the user is a subscriber, they should be able to the post title displayed on the front page, and on search results.
  • If the user is logged out, they should be able to the post title displayed on the front page, but not on the search result

Facets (#2667)

WooCommerce (#2923)

  • Check Order IDs search (admin)
  • Check orderby parameter (frontend)
  • Having orders for more than one user in the system, visit my-account/orders page and check if only user’s order are returned

Autosuggest

  • Check highligh
  • Check cyrillic characters
  • Check behavior while indexing

Terms (#2931)

  • With Protected Content enabled, searching for a Term in the Dashboard should use ElasticPress
  • Ordering by any column should work and go through ElasticPress
  • If user deletes a term, the term should not be displayed anymore
  • If user deletes a parent term, all children terms should be updated
  • Create these three post tags (Test Post, Test Ruth, and The Most Fun Thing) and search for “the most fun thing”. Only that should be returned

Comments (#2955)

  • If user activates the Comments feature, it should sync approved comments.
  • If user posts an anonymous comment, it should not be synced
  • If user approves a pending comment, it should be synced
  • If user disables the options "Comment must be manually approved" and "Comment author must have a previously approved comment" on Settings > Discussion and post an anonymous comment, it should be synced.
  • If feature is activated, user should see “ElasticPress - Comment” widget in the dashboard.
  • If WooCommerce is activated, it should sync reviews

Instant Results

  • If not in ElasticPress.io nor using a custom PHP proxy, user should not be able to enable the feature.
  • If using https://github.com/10up/elasticpress-proxy, user should see a warning about security measures
  • In the frontend, typing something in a search form and hitting enter should open the Instant Results popup
  • Changing filters and search term should update results
  • Different taxonomies with the same name but applied to different post types (Categories vs. Product Categories) should have the post type label appended in the filter displayed in the front end
  • Filter options should display the counter of their available results
  • Navigating through filters should change the URL
  • Reloading a filtered instant result should open the modal in the same state
  • Should be able to click outside of the popup modal

Synonyms (#2655)

Weighting Engine

TBD

WP-CLI (#2926)

  • set-algorithm-version
  • get-algorithm-version
  • get-mapping
  • get-cluster-indexes
  • get-indexes
  • recreate-network-alias
  • epio-set-autosuggest
  • clear-index
  • stop-indexing
  • request
  • index: Check new --static-bulk flag in WP-CLI
@felipeelia felipeelia added this to the 4.0 milestone Feb 25, 2022
@felipeelia felipeelia self-assigned this Feb 25, 2022
@felipeelia
Copy link
Member Author

felipeelia commented Feb 27, 2022

Although #2615 was already merged, we still need to, at least, adapt tests to better reflect the changes we made in the dashboard screen and roughly test Instant Results.

I'm changing the purpose of this issue. Instead of simply tracking the tests that should be added due to changes in 4.0.0, it is now tracking all the e2e tests that we need to implement.

@felipeelia felipeelia changed the title Cypress tests for 4.0.0 Cypress tests Mar 7, 2022
@felipeelia felipeelia modified the milestones: 4.0.0, Future Release Mar 8, 2022
@burhandodhy burhandodhy linked a pull request Aug 23, 2022 that will close this issue
4 tasks
@burhandodhy burhandodhy removed a link to a pull request Aug 23, 2022
4 tasks
@felipeelia felipeelia modified the milestones: Future Release, 4.4.1 Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment