Flaky Jetpack E2E: when using AI Assistant block, validate only whether paragraph block exists. #81716
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to #80730, #81580.
Proposed Changes
This PR is a follow-up to #81580 and updates the expectation in light of a flakeout by ChatGPT noted in p1694596605435499-slack-CDLH4C1UZ.
There will still be an initial attempt to verify the keyword(s) are present in the post, but if that fails, the block flow will fall back to simply verifying whether a paragraph block exists.
Unfortunately, because there is no reliable way to tell what generated the paragraph block in the published post, it is not possible to further narrow the selector.
Testing Instructions
Ensure the following build configurations are passing:
Pre-merge Checklist