Skip to content

Reverts changes to the highlighting feature#19412

Merged
FAMarfuaty merged 3 commits intorelease/19.14from
reverts/19.14
Dec 21, 2022
Merged

Reverts changes to the highlighting feature#19412
FAMarfuaty merged 3 commits intorelease/19.14from
reverts/19.14

Conversation

@mhkuu
Copy link
Copy Markdown
Contributor

@mhkuu mhkuu commented Dec 21, 2022

Context

Summary

This PR can be summarized in the following changelog entry:

Relevant technical choices:

Test instructions

Test instructions for the acceptance test before the PR gets merged

This PR can be acceptance tested by following these steps:

Classic editor

Test with text that doesn't contain link(s)
Keyword density assessment
  • Set the word catnip as the focus keyphrase
  • Confirm that the keyphrase density assessment detects 8 occurrences of the keyphrase in the text
  • Click on the eye icon and confirm that all 8 occurrences are highlighted
  • Click the eye icon of keyword density assessment
Keyphrase distribution assessment
  • Install and activate Yoast SEO premium
  • Repeat the step in Keyword density assessment, and confirm that clicking on the eye icon of the Keyphrase distribution assessment will also highlight all 8 occurrences of focus keyphrase
Word complexity assessment
  • Install and activate Yoast SEO premium
  • Go to the previous post
  • Go to the Readability analysis tab
  • Confirm that complex words are highlighted
Sentence length, Passive voice, and Transition words assessment
  • Go to the previous post
  • Click on the eye icon of the sentence length assessment
  • Confirm that all long sentences are highlighted
  • Click on the eye icon of the passive sentence assessment
  • Confirm that all sentences that contain passive voice are highlighted
  • Click on the eye icon of the transition words assessments
  • Confirm that all sentences with transition words are highlighted
Consecutive sentences assessment
  • (Assessment not available for E-commerce content types)
  • Go to the previous post
  • Add these three sentences containing anchor links that start with the same words:

Cats detect nepetalactone through their olfactory epithelium, not through their vomeronasal organ. Cats detect nepetalactone through their olfactory epithelium, not through their vomeronasal organ. Cats detect nepetalactone through their olfactory epithelium, not through their vomeronasal organ.

  • Click on the eye icon of the consecutive sentences assessment
  • Confirm that the three sentences above are highlighted
Paragraph length assessment
  • Go to the previous post
  • Make one of the paragraphs longer than 150 words
  • Click on the paragraph length assessment
  • Confirm that the long paragraph is highlighted
Inclusive language analysis
  • Go to the previous post
  • In one of the sentences that don't contain links, add a non-inclusive word like, "seniors", "policemen" etc.
  • Click on the eye icon of the feedback
  • Confirm that sentence that contains the non-inclusive word is highlighted

Block editor

  • Repeat the test instruction in Classic editor
  • Confirm that highlighting works for text that contains links and text that doesn't contain links.

Relevant test scenarios

  • Changes should be tested with the browser console open
  • Changes should be tested on different posts/pages/taxonomies/custom post types/custom taxonomies
  • Changes should be tested on different editors (Block/Classic/Elementor/other)
  • Changes should be tested on different browsers
  • Changes should be tested on multisite

Test instructions for QA when the code is in the RC

  • QA should use the same steps as above.

QA can test this PR by following these steps:

Impact check

This PR affects the following parts of the plugin, which may require extra testing:

UI changes

  • This PR changes the UI in the plugin. I have added the 'UI change' label to this PR.

Other environments

  • This PR also affects Shopify. I have added a changelog entry starting with [shopify-seo], added test instructions for Shopify and attached the Shopify label to this PR.

Documentation

  • I have written documentation for this change.

Quality assurance

  • I have tested this code to the best of my abilities
  • I have added unit tests to verify the code works as intended
  • If any part of the code is behind a feature flag, my test instructions also cover cases where the feature flag is switched off.
  • I have written this PR in accordance with my team's definition of done.

Innovation

  • No innovation project is applicable for this PR.
  • This PR falls under an innovation project. I have attached the innovation label and noted the work hours.

Fixes (well, reverts changes that lead to...) https://yoast.atlassian.net/browse/PC-1062

…ng-square-brackets-in-content-lead-to-errors-with-classic-editor"

This reverts commit 69006b0, reversing
changes made to 89a5291.
…ak-html-of-content"

This reverts commit e16abc2, reversing
changes made to db44faa.
@FAMarfuaty FAMarfuaty added the changelog: non-user-facing Needs to be included in the 'Non-userfacing' category in the changelog label Dec 21, 2022
@FAMarfuaty FAMarfuaty marked this pull request as ready for review December 21, 2022 14:09
@FAMarfuaty FAMarfuaty added this to the 19.14 milestone Dec 21, 2022
@FAMarfuaty
Copy link
Copy Markdown
Contributor

I also smoke test with the ACF plugin activated.

@FAMarfuaty FAMarfuaty merged commit 9d1c267 into release/19.14 Dec 21, 2022
@FAMarfuaty FAMarfuaty deleted the reverts/19.14 branch December 21, 2022 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: non-user-facing Needs to be included in the 'Non-userfacing' category in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants