Skip to content

Commit

Permalink
Update tests after block-library/style.css changes in Gutenberg 7.9 (#…
Browse files Browse the repository at this point in the history
…4579)

* Update tests after block-library/style.css changes in Gutenberg 7.9

* Use CSS selector present since 5.0
  • Loading branch information
westonruter authored Apr 13, 2020
1 parent db74211 commit 9e4e491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/php/test-amp-style-sanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2612,7 +2612,7 @@ static function() {
'wp_footer',
function() {
?>
<div class="is-style-outline"><button class="wp-block-button__link"></button></div>
<figure class="wp-block-audio"><figcaption></figcaption></figure>
<div class="wp-block-foo"><figcaption></figcaption></div>
<img src="https://example.com/example.jpg" width="100" height="200">
<?php
Expand All @@ -2635,7 +2635,7 @@ function( $original_dom, $original_source, $amphtml_dom, $amphtml_source ) {
$this->assertStringContains( 'admin-bar', $original_dom->body->getAttribute( 'class' ) );
$this->assertStringContains( 'earlyprintstyle', $original_source, 'Expected early print style to not be present.' );

$this->assertStringContains( '.is-style-outline .wp-block-button__link', $amphtml_source, 'Expected block-library/style.css' );
$this->assertStringContains( '.wp-block-audio figcaption', $amphtml_source, 'Expected block-library/style.css' );
$this->assertStringContains( '[class^="wp-block-"]:not(.wp-block-gallery) figcaption', $amphtml_source, 'Expected twentyten/blocks.css' );
$this->assertStringContains( 'amp-img.amp-wp-enforced-sizes', $amphtml_source, 'Expected amp-default.css' );
$this->assertStringContains( 'ab-empty-item', $amphtml_source, 'Expected admin-bar.css to still be present.' );
Expand Down

0 comments on commit 9e4e491

Please sign in to comment.