Skip to content

Commit

Permalink
Fix broken e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Davies committed Feb 10, 2021
1 parent 58cf248 commit 6af96d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/e2e-tests/specs/editor/blocks/gallery.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe( 'Gallery', () => {
const filename = await upload( '.wp-block-gallery input[type="file"]' );

const regex = new RegExp(
`<!-- wp:gallery {\\"linkTo\\":\\"none\\",\\"imageCount\\":\\d+} -->\\s*<figure class=\\"wp-block-gallery blocks-gallery-grid has-nested-images columns-1 is-cropped\\"><!-- wp:image {\\"id\\":\\d+,\\"sizeSlug\\":\\"large\\",\\"linkDestination\\":\\"none\\",\\"inheritedAttributes\\":{\\"linkDestination\\":true,\\"linkTarget\\":true,\\"sizeSlug\\":true}} -->\\s*<figure class=\\"wp-block-image size-large\\"><img src=\\"[^"]+\/${ filename }\.png\\" alt=\\"\\" class=\\"wp-image-\\d+\\"\/><\/figure>\\s*<!-- \/wp:image --><\/figure>\\s*<!-- \/wp:gallery -->`
`<!-- wp:gallery {\\"linkTo\\":\\"none\\",\\"imageCount\\":\\d+} -->\\s*<figure class=\\"wp-block-gallery blocks-gallery-grid has-nested-images columns-1 is-cropped\\" style=\\"--gallery-block--gutter-size:false\\"><!-- wp:image {\\"id\\":\\d+,\\"sizeSlug\\":\\"large\\",\\"linkDestination\\":\\"none\\",\\"inheritedAttributes\\":{\\"linkDestination\\":true,\\"linkTarget\\":true,\\"sizeSlug\\":true}} -->\\s*<figure class=\\"wp-block-image size-large\\"><img src=\\"[^"]+\/${ filename }\.png\\" alt=\\"\\" class=\\"wp-image-\\d+\\"\/><\/figure>\\s*<!-- \/wp:image --><\/figure>\\s*<!-- \/wp:gallery -->`
);
expect( await getEditedPostContent() ).toMatch( regex );
} );
Expand Down

0 comments on commit 6af96d3

Please sign in to comment.