Skip to content

Commit abc3c8d

Browse files
Copilotswissspidy
andcommitted
Add Behat test to verify no HTML output during core update
Add test scenario that verifies async translation updates don't output HTML tags during WordPress core updates. The test checks that the output doesn't contain <p>, <div>, <script>, or closing </div> tags. Co-authored-by: swissspidy <[email protected]>
1 parent 50411e0 commit abc3c8d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

features/core-update.feature

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,3 +384,24 @@ Feature: Update WordPress core
384384
"""
385385
Success:
386386
"""
387+
388+
Scenario: No HTML output from async translation updates during core update
389+
Given a WP install
390+
391+
When I run `wp core update --version=6.2.0 --force`
392+
Then STDOUT should not contain:
393+
"""
394+
<p>
395+
"""
396+
And STDOUT should not contain:
397+
"""
398+
<div
399+
"""
400+
And STDOUT should not contain:
401+
"""
402+
<script
403+
"""
404+
And STDOUT should not contain:
405+
"""
406+
</div>
407+
"""

0 commit comments

Comments
 (0)