Skip to content

Commit

Permalink
Update test cases for post preview script xpath
Browse files Browse the repository at this point in the history
  • Loading branch information
thelovekesh committed Mar 18, 2024
1 parent da9d8b5 commit 26f7d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/php/test-amp-helper-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1938,7 +1938,7 @@ static function () {
'//*[ @id = "wpadminbar" ]',
'//*[ @id = "wpadminbar" ]//*',
'//style[ @id = "admin-bar-inline-css" ]',
'//script[ not( @src ) and contains( text(), "document.location.search" ) and contains( text(), "preview=true" ) and contains( text(), "unload" ) and contains( text(), "window.name" ) and contains( text(), "wp-preview-' . $post . '" ) ]',
'//script[ not( @src ) and contains( text(), "document.location.search" ) and contains( text(), "preview=true" ) and ( contains( text(), "pagehide" ) or contains( text(), "unload" ) ) and contains( text(), "window.name" ) and contains( text(), "wp-preview-' . $post . '" ) ]',
'//link[@rel="manifest" and contains(@href, "web-app-manifest")]',
],
$sanitizers[ AMP_Dev_Mode_Sanitizer::class ]['element_xpaths']
Expand Down

0 comments on commit 26f7d62

Please sign in to comment.