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 for the Synonyms feature #2655

Merged
merged 5 commits into from
Mar 22, 2022
Merged

Conversation

felipeelia
Copy link
Member

@felipeelia felipeelia commented Mar 15, 2022

Description of the Change

This PR adds cypress tests related to the Synonyms feature.

  • Create a synonym set with “hoodie” and “sweatshirt” -> ensure searching for “sweatshirt” returns the hoodie from the WC sample data
  • Delete all synonym sets and synonym alternatives, test “sweatshirt” again to ensure “hoodie” no longer matches
  • Add an alternative with a primary term of “sweater” and a term of “hoodie”, then search for “sweater” and expect the result of “hoodie” to appear. Repeat search with “hoodie” and expect only hoodie (but not sweater) to appear.
  • Delete all synonym sets one more time to confirm the dashboard is still working.
  • Switching to the “Advanced Text Editor” allows the user to:
    • Create new lines
    • Freely edit existent sets of synonyms
    • Give proper warning for wrong entries (a line with only “word =>” for example)
  • Index via WP-CLI and verify if the synonyms previously set weren’t removed

Related to #2614

Changelog Entry

Added: e2e tests for the Synonyms feature.

Credits

Props @felipeelia

@felipeelia felipeelia added this to the 4.1.0 milestone Mar 15, 2022
@felipeelia felipeelia self-assigned this Mar 15, 2022
@felipeelia felipeelia mentioned this pull request Mar 17, 2022
46 tasks
@felipeelia felipeelia requested a review from JakePT March 17, 2022 19:58
@felipeelia felipeelia assigned JakePT and unassigned felipeelia Mar 17, 2022
@felipeelia felipeelia changed the title WIP: Cypress tests for the Synonyms feature Cypress tests for the Synonyms feature Mar 18, 2022
@felipeelia felipeelia merged commit 3b4df34 into develop Mar 22, 2022
@felipeelia felipeelia deleted the tests/e2e-synonyms branch March 22, 2022 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants