Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update snapshot format to Jest 29 default #48366

Merged
merged 2 commits into from
Feb 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/plugin/commands/test/__snapshots__/changelog.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ exports[`getChangelog verify that the changelog is properly formatted 1`] = `
- Correct \`function_exists()\` check typo introduced in #33331. ([33513](https://github.com/WordPress/gutenberg/pull/33513))
- ESLint Plugin: Include .jsx extenstion when linting import statements. ([33746](https://github.com/WordPress/gutenberg/pull/33746))
- Fix block appender position in classic themes. ([33895](https://github.com/WordPress/gutenberg/pull/33895))
- Fix misspelling of \\"queries\\" in filter documentation. ([33799](https://github.com/WordPress/gutenberg/pull/33799))
- Fix misspelling of "queries" in filter documentation. ([33799](https://github.com/WordPress/gutenberg/pull/33799))
- Fix positioning discrepancy with draggable chip. ([33893](https://github.com/WordPress/gutenberg/pull/33893))
- Navigation Editor: Avoid React warning when creating a new menu. ([33843](https://github.com/WordPress/gutenberg/pull/33843))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,69 +5,69 @@ exports[`BlockDraggable moves blocks: Initial order 1`] = `
<p>This is a paragraph.</p>
<!-- /wp:paragraph -->

<!-- wp:image {\\"sizeSlug\\":\\"large\\"} -->
<figure class=\\"wp-block-image size-large\\"><img src=\\"https://cldup.com/cXyG__fTLN.jpg\\" alt=\\"\\"/></figure>
<!-- wp:image {"sizeSlug":"large"} -->
<figure class="wp-block-image size-large"><img src="https://cldup.com/cXyG__fTLN.jpg" alt=""/></figure>
<!-- /wp:image -->

<!-- wp:spacer -->
<div style=\\"height:100px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:gallery {\\"linkTo\\":\\"none\\"} -->
<figure class=\\"wp-block-gallery has-nested-images columns-default is-cropped\\"><!-- wp:image {\\"sizeSlug\\":\\"large\\",\\"linkDestination\\":\\"none\\"} -->
<figure class=\\"wp-block-image size-large\\"><img src=\\"https://cldup.com/cXyG__fTLN.jpg\\" alt=\\"\\"/></figure>
<!-- wp:gallery {"linkTo":"none"} -->
<figure class="wp-block-gallery has-nested-images columns-default is-cropped"><!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="https://cldup.com/cXyG__fTLN.jpg" alt=""/></figure>
<!-- /wp:image -->

<!-- wp:image {\\"sizeSlug\\":\\"large\\",\\"linkDestination\\":\\"none\\"} -->
<figure class=\\"wp-block-image size-large\\"><img src=\\"https://cldup.com/cXyG__fTLN.jpg\\" alt=\\"\\"/></figure>
<!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="https://cldup.com/cXyG__fTLN.jpg" alt=""/></figure>
<!-- /wp:image --></figure>
<!-- /wp:gallery -->"
`;

exports[`BlockDraggable moves blocks: Paragraph block moved from first to second position 1`] = `
"<!-- wp:image {\\"sizeSlug\\":\\"large\\"} -->
<figure class=\\"wp-block-image size-large\\"><img src=\\"https://cldup.com/cXyG__fTLN.jpg\\" alt=\\"\\"/></figure>
"<!-- wp:image {"sizeSlug":"large"} -->
<figure class="wp-block-image size-large"><img src="https://cldup.com/cXyG__fTLN.jpg" alt=""/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>This is a paragraph.</p>
<!-- /wp:paragraph -->

<!-- wp:spacer -->
<div style=\\"height:100px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:gallery {\\"linkTo\\":\\"none\\"} -->
<figure class=\\"wp-block-gallery has-nested-images columns-default is-cropped\\"><!-- wp:image {\\"sizeSlug\\":\\"large\\",\\"linkDestination\\":\\"none\\"} -->
<figure class=\\"wp-block-image size-large\\"><img src=\\"https://cldup.com/cXyG__fTLN.jpg\\" alt=\\"\\"/></figure>
<!-- wp:gallery {"linkTo":"none"} -->
<figure class="wp-block-gallery has-nested-images columns-default is-cropped"><!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="https://cldup.com/cXyG__fTLN.jpg" alt=""/></figure>
<!-- /wp:image -->

<!-- wp:image {\\"sizeSlug\\":\\"large\\",\\"linkDestination\\":\\"none\\"} -->
<figure class=\\"wp-block-image size-large\\"><img src=\\"https://cldup.com/cXyG__fTLN.jpg\\" alt=\\"\\"/></figure>
<!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="https://cldup.com/cXyG__fTLN.jpg" alt=""/></figure>
<!-- /wp:image --></figure>
<!-- /wp:gallery -->"
`;

exports[`BlockDraggable moves blocks: Spacer block moved from third to first position 1`] = `
"<!-- wp:spacer -->
<div style=\\"height:100px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:image {\\"sizeSlug\\":\\"large\\"} -->
<figure class=\\"wp-block-image size-large\\"><img src=\\"https://cldup.com/cXyG__fTLN.jpg\\" alt=\\"\\"/></figure>
<!-- wp:image {"sizeSlug":"large"} -->
<figure class="wp-block-image size-large"><img src="https://cldup.com/cXyG__fTLN.jpg" alt=""/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>This is a paragraph.</p>
<!-- /wp:paragraph -->

<!-- wp:gallery {\\"linkTo\\":\\"none\\"} -->
<figure class=\\"wp-block-gallery has-nested-images columns-default is-cropped\\"><!-- wp:image {\\"sizeSlug\\":\\"large\\",\\"linkDestination\\":\\"none\\"} -->
<figure class=\\"wp-block-image size-large\\"><img src=\\"https://cldup.com/cXyG__fTLN.jpg\\" alt=\\"\\"/></figure>
<!-- wp:gallery {"linkTo":"none"} -->
<figure class="wp-block-gallery has-nested-images columns-default is-cropped"><!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="https://cldup.com/cXyG__fTLN.jpg" alt=""/></figure>
<!-- /wp:image -->

<!-- wp:image {\\"sizeSlug\\":\\"large\\",\\"linkDestination\\":\\"none\\"} -->
<figure class=\\"wp-block-image size-large\\"><img src=\\"https://cldup.com/cXyG__fTLN.jpg\\" alt=\\"\\"/></figure>
<!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
<figure class="wp-block-image size-large"><img src="https://cldup.com/cXyG__fTLN.jpg" alt=""/></figure>
<!-- /wp:image --></figure>
<!-- /wp:gallery -->"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@ exports[`Block Actions Menu block options copies and pastes a block 1`] = `
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 class=\\"wp-block-heading\\"></h2>
<h2 class="wp-block-heading"></h2>
<!-- /wp:heading -->

<!-- wp:spacer -->
<div style=\\"height:100px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class=\\"wp-block-heading\\"></h2>
<h2 class="wp-block-heading"></h2>
<!-- /wp:heading -->"
`;

exports[`Block Actions Menu block options cuts and pastes a block 1`] = `
"<!-- wp:spacer -->
<div style=\\"height:100px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class=\\"wp-block-heading\\"></h2>
<h2 class="wp-block-heading"></h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
Expand All @@ -38,15 +38,15 @@ exports[`Block Actions Menu block options does not replace a non empty Paragraph
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2 class=\\"wp-block-heading\\"></h2>
<h2 class="wp-block-heading"></h2>
<!-- /wp:heading -->

<!-- wp:spacer -->
<div style=\\"height:100px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class=\\"wp-block-heading\\"></h2>
<h2 class="wp-block-heading"></h2>
<!-- /wp:heading -->"
`;

Expand All @@ -56,29 +56,29 @@ exports[`Block Actions Menu block options duplicates a block 1`] = `
<!-- /wp:paragraph -->

<!-- wp:spacer -->
<div style=\\"height:100px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:spacer -->
<div style=\\"height:100px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class=\\"wp-block-heading\\"></h2>
<h2 class="wp-block-heading"></h2>
<!-- /wp:heading -->"
`;

exports[`Block Actions Menu block options transforms a Paragraph block into a Pullquote block 1`] = `
"<!-- wp:pullquote -->
<figure class=\\"wp-block-pullquote\\"><blockquote><p>Hello!</p></blockquote></figure>
<figure class="wp-block-pullquote"><blockquote><p>Hello!</p></blockquote></figure>
<!-- /wp:pullquote -->

<!-- wp:spacer -->
<div style=\\"height:100px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class=\\"wp-block-heading\\"></h2>
<h2 class="wp-block-heading"></h2>
<!-- /wp:heading -->"
`;

Expand All @@ -88,11 +88,11 @@ exports[`Block Actions Menu moving blocks disables the Move Down button for the
<!-- /wp:paragraph -->

<!-- wp:spacer -->
<div style=\\"height:100px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class=\\"wp-block-heading\\"></h2>
<h2 class="wp-block-heading"></h2>
<!-- /wp:heading -->"
`;

Expand All @@ -102,24 +102,24 @@ exports[`Block Actions Menu moving blocks disables the Move Up button for the fi
<!-- /wp:paragraph -->

<!-- wp:spacer -->
<div style=\\"height:100px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class=\\"wp-block-heading\\"></h2>
<h2 class="wp-block-heading"></h2>
<!-- /wp:heading -->"
`;

exports[`Block Actions Menu moving blocks moves blocks up and down 1`] = `
"<!-- wp:heading -->
<h2 class=\\"wp-block-heading\\"></h2>
<h2 class="wp-block-heading"></h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Hello!</p>
<!-- /wp:paragraph -->

<!-- wp:spacer -->
<div style=\\"height:100px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ exports[`Block Mover Picker moving blocks disables the Move Down button for the
<!-- /wp:paragraph -->

<!-- wp:spacer -->
<div style=\\"height:100px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class=\\"wp-block-heading\\"></h2>
<h2 class="wp-block-heading"></h2>
<!-- /wp:heading -->"
`;

Expand All @@ -20,37 +20,37 @@ exports[`Block Mover Picker moving blocks disables the Move Up button for the fi
<!-- /wp:paragraph -->

<!-- wp:spacer -->
<div style=\\"height:100px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:heading -->
<h2 class=\\"wp-block-heading\\"></h2>
<h2 class="wp-block-heading"></h2>
<!-- /wp:heading -->"
`;

exports[`Block Mover Picker moving blocks moves blocks up and down 1`] = `
"<!-- wp:heading -->
<h2 class=\\"wp-block-heading\\"></h2>
<h2 class="wp-block-heading"></h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Hello!</p>
<!-- /wp:paragraph -->

<!-- wp:spacer -->
<div style=\\"height:100px\\" aria-hidden=\\"true\\" class=\\"wp-block-spacer\\"></div>
<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->"
`;

exports[`Block Mover Picker should match snapshot 1`] = `
Array [
[
<View>
<View
accessibilityHint="Double tap to move the block to the left"
accessibilityLabel="Move block left from position 2 to position 1"
accessibilityRole="button"
accessibilityState={
Object {
{
"disabled": false,
}
}
Expand All @@ -65,7 +65,7 @@ Array [
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
{
"alignItems": "center",
"flex": 1,
"justifyContent": "center",
Expand All @@ -81,7 +81,7 @@ Array [
onGestureHandlerEvent={[Function]}
onGestureHandlerStateChange={[Function]}
style={
Object {
{
"alignItems": "center",
"aspectRatio": 1,
"flex": 1,
Expand All @@ -93,7 +93,7 @@ Array [
>
<View
style={
Object {
{
"flexDirection": "row",
}
}
Expand All @@ -109,7 +109,7 @@ Array [
accessibilityLabel="Move block right"
accessibilityRole="button"
accessibilityState={
Object {
{
"disabled": true,
}
}
Expand All @@ -124,7 +124,7 @@ Array [
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
{
"alignItems": "center",
"flex": 1,
"justifyContent": "center",
Expand All @@ -140,7 +140,7 @@ Array [
onGestureHandlerEvent={[Function]}
onGestureHandlerStateChange={[Function]}
style={
Object {
{
"alignItems": "center",
"aspectRatio": 1,
"flex": 1,
Expand All @@ -152,7 +152,7 @@ Array [
>
<View
style={
Object {
{
"flexDirection": "row",
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ exports[`ColorPaletteControl matches the snapshot 1`] = `
<button
aria-expanded="false"
aria-haspopup="true"
aria-label="Custom color picker. The currently selected color is called \\"red\\" and has a value of \\"f00\\"."
aria-label="Custom color picker. The currently selected color is called "red" and has a value of "f00"."
class="components-flex components-color-palette__custom-color emotion-10 emotion-5"
data-wp-c16t="true"
data-wp-component="Flex"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`InnerBlocks should force serialize for invalid block with inner blocks
`;

exports[`InnerBlocks should return element as string, with inner blocks 1`] = `
"<div>Bananas<!-- wp:fruit {\\"fruit\\":\\"Apples\\"} -->
"<div>Bananas<!-- wp:fruit {"fruit":"Apples"} -->
<div>Apples</div>
<!-- /wp:fruit --></div>"
`;
Loading