-
Notifications
You must be signed in to change notification settings - Fork 894
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
Excludes image captions from keyphrase in introduction assessment #21414
Excludes image captions from keyphrase in introduction assessment #21414
Conversation
…into exclude-captions-from-keyphrase-in-intro
packages/yoastseo/src/languageProcessing/researches/findKeywordInFirstParagraph.js
Show resolved
Hide resolved
packages/yoastseo/src/languageProcessing/researches/getParagraphs.js
Outdated
Show resolved
Hide resolved
…seo into exclude-captions-from-keyphrase-in-intro
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR: I've added one test and fixed the other tests in the file, as we now return an additional property from this research, we can use https://jestjs.io/docs/expect#tomatchobjectobject to still compare with the old situation.
Pull Request Test Coverage Report for Build d6e77a21c59f6eb95c7e05f8e9f21d9e9f41e091Details
💛 - Coveralls |
ACC: Works as advertised 🎉 |
I've added a changelog item for Shopify as well. @sannevndrmeulen , due to time constraints, I have not been able to test this PR in Shopify. It could be that we need to add something additional there. Once we up the WordPress version in our Shopify app to a version that includes this PR, we can check that and act accordingly. |
I removed the Shopify label since there is no option to add captions to the image in Shopify. So the changes in this PR are irrelevant to Shopify |
Context
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
findKeywordInFirstParagraph.js
to minimize the impact of potentially filtering captions for other assessments. This way we keep the impact minimally, only to keyphrase in introduction assessment.findKeywordInFirstParagraph
, we now also return the first paragraph itself. This will be useful when we use this helper in Premium to get the introduction that we send to the AI as prompt content.Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
In Free
In Premium
Relevant test scenarios
Test instructions for QA when the code is in the RC
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
Other environments
[shopify-seo]
, added test instructions for Shopify and attached theShopify
label to this PR.Documentation
Quality assurance
Innovation
innovation
label.Fixes https://github.com/Yoast/lingo-other-tasks/issues/426