- Code is Poetry
+
`;
exports[`props should render correctly 1`] = `
-
+
`;
diff --git a/packages/components/src/ui/context/test/context-system-provider.js b/packages/components/src/ui/context/test/context-system-provider.js
index e8c2b5c56286f9..8b052bc06c27fe 100644
--- a/packages/components/src/ui/context/test/context-system-provider.js
+++ b/packages/components/src/ui/context/test/context-system-provider.js
@@ -30,7 +30,7 @@ describe( 'props', () => {
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
} );
test( 'should render context props', () => {
@@ -60,7 +60,7 @@ describe( 'props', () => {
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
expect( container.firstChild.innerHTML ).toContain( 'Code is Poetry' );
} );
@@ -98,7 +98,7 @@ describe( 'props', () => {
>
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
const el = container.querySelector( '.test-component' );
diff --git a/packages/components/src/ui/control-group/test/__snapshots__/index.js.snap b/packages/components/src/ui/control-group/test/__snapshots__/index.js.snap
index b5ab9da09702f5..d9f26aa5af8d20 100644
--- a/packages/components/src/ui/control-group/test/__snapshots__/index.js.snap
+++ b/packages/components/src/ui/control-group/test/__snapshots__/index.js.snap
@@ -28,22 +28,24 @@ exports[`props should render correctly 1`] = `
z-index: 1;
}
-
-
+
- Code is Poetry
-
-
- WordPress.org
-
+
+ Code is Poetry
+
+
+ WordPress.org
+
+
`;
diff --git a/packages/components/src/ui/control-group/test/index.js b/packages/components/src/ui/control-group/test/index.js
index 6bfd4318b8c13a..0587c329b40569 100644
--- a/packages/components/src/ui/control-group/test/index.js
+++ b/packages/components/src/ui/control-group/test/index.js
@@ -17,6 +17,6 @@ describe( 'props', () => {
WordPress.org
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
} );
} );
diff --git a/packages/components/src/ui/control-label/test/__snapshots__/index.js.snap b/packages/components/src/ui/control-label/test/__snapshots__/index.js.snap
index d0582df5cde06a..ffe2d42932d002 100644
--- a/packages/components/src/ui/control-label/test/__snapshots__/index.js.snap
+++ b/packages/components/src/ui/control-label/test/__snapshots__/index.js.snap
@@ -37,13 +37,15 @@ exports[`props should render correctly 1`] = `
}
}
-
- Label
-
+
+
+ Label
+
+
`;
exports[`props should render no truncate 1`] = `
@@ -79,13 +81,15 @@ exports[`props should render no truncate 1`] = `
}
}
-
- Label
-
+
+
+ Label
+
+
`;
exports[`props should render size 1`] = `
@@ -125,11 +129,13 @@ exports[`props should render size 1`] = `
}
}
-
- Label
-
+
+
+ Label
+
+
`;
diff --git a/packages/components/src/ui/control-label/test/index.js b/packages/components/src/ui/control-label/test/index.js
index e5b46f73bb043e..20a9c99c833b0a 100644
--- a/packages/components/src/ui/control-label/test/index.js
+++ b/packages/components/src/ui/control-label/test/index.js
@@ -12,7 +12,7 @@ describe( 'props', () => {
test( 'should render correctly', () => {
const { container } = render(
Label );
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
} );
test( 'should render htmlFor', () => {
@@ -28,7 +28,7 @@ describe( 'props', () => {
Label
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
} );
test( 'should render no truncate', () => {
@@ -36,6 +36,6 @@ describe( 'props', () => {
Label
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
} );
} );
diff --git a/packages/components/src/ui/form-group/test/__snapshots__/index.js.snap b/packages/components/src/ui/form-group/test/__snapshots__/index.js.snap
index b0df52ceb94f04..b10a44c09d5d8b 100644
--- a/packages/components/src/ui/form-group/test/__snapshots__/index.js.snap
+++ b/packages/components/src/ui/form-group/test/__snapshots__/index.js.snap
@@ -38,23 +38,25 @@ exports[`props should render alignLabel 1`] = `
}
}
-
`;
@@ -96,22 +98,24 @@ exports[`props should render vertically 1`] = `
}
}
-
`;
diff --git a/packages/components/src/ui/form-group/test/index.js b/packages/components/src/ui/form-group/test/index.js
index f221d7352c317e..a9c0edb70efadb 100644
--- a/packages/components/src/ui/form-group/test/index.js
+++ b/packages/components/src/ui/form-group/test/index.js
@@ -67,7 +67,7 @@ describe( 'props', () => {
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
} );
test( 'should render vertically', () => {
@@ -77,7 +77,7 @@ describe( 'props', () => {
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
} );
} );
/* eslint-enable no-restricted-syntax */
diff --git a/packages/components/src/ui/shortcut/test/__snapshots__/index.js.snap b/packages/components/src/ui/shortcut/test/__snapshots__/index.js.snap
index 43b32bfa080401..edd4ed91bc3529 100644
--- a/packages/components/src/ui/shortcut/test/__snapshots__/index.js.snap
+++ b/packages/components/src/ui/shortcut/test/__snapshots__/index.js.snap
@@ -10,4 +10,4 @@ exports[`Shortcut should render a span with the shortcut text 1`] = `
`;
-exports[`Shortcut should render null when no shortcut is provided 1`] = `null`;
+exports[`Shortcut should render null when no shortcut is provided 1`] = `
`;
diff --git a/packages/components/src/ui/shortcut/test/index.js b/packages/components/src/ui/shortcut/test/index.js
index 09329cfdf34cf9..7dc49f7b3f6632 100644
--- a/packages/components/src/ui/shortcut/test/index.js
+++ b/packages/components/src/ui/shortcut/test/index.js
@@ -11,7 +11,7 @@ import { Shortcut } from '..';
describe( 'Shortcut', () => {
it( 'should render null when no shortcut is provided', () => {
const { container } = render(
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
} );
it( 'should render a span with the shortcut text', () => {
diff --git a/packages/components/src/ui/spinner/test/__snapshots__/index.js.snap b/packages/components/src/ui/spinner/test/__snapshots__/index.js.snap
index 054fff26111b61..a97207b549fd0f 100644
--- a/packages/components/src/ui/spinner/test/__snapshots__/index.js.snap
+++ b/packages/components/src/ui/spinner/test/__snapshots__/index.js.snap
@@ -179,58 +179,60 @@ exports[`props should render correctly 1`] = `
transform: rotate( 330deg ) translate( 0, -130% );
}
-
+
-
-
-
-
-
-
-
-
-
-
-
+ class="emotion-4 emotion-5"
+ style="color: rgb(30, 30, 30);"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/components/src/ui/spinner/test/index.js b/packages/components/src/ui/spinner/test/index.js
index d075ab82d0be13..883d7a78917be3 100644
--- a/packages/components/src/ui/spinner/test/index.js
+++ b/packages/components/src/ui/spinner/test/index.js
@@ -11,7 +11,7 @@ import { Spinner } from '..';
describe( 'props', () => {
test( 'should render correctly', () => {
const { container } = render(
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
} );
test( 'should render color', () => {
diff --git a/packages/components/src/v-stack/test/__snapshots__/index.tsx.snap b/packages/components/src/v-stack/test/__snapshots__/index.tsx.snap
index 5e842a5103a146..9404cbb976b975 100644
--- a/packages/components/src/v-stack/test/__snapshots__/index.tsx.snap
+++ b/packages/components/src/v-stack/test/__snapshots__/index.tsx.snap
@@ -24,17 +24,19 @@ exports[`props should render alignment 1`] = `
min-height: 0;
}
-
+
-
+ class="components-flex components-h-stack components-v-stack emotion-0 emotion-1"
+ data-wp-c16t="true"
+ data-wp-component="VStack"
+ >
+
+
+
`;
@@ -61,17 +63,19 @@ exports[`props should render correctly 1`] = `
min-height: 0;
}
-
-
+
+ class="components-flex components-h-stack components-v-stack emotion-0 emotion-1"
+ data-wp-c16t="true"
+ data-wp-component="VStack"
+ >
+
+
+
`;
@@ -98,16 +102,18 @@ exports[`props should render spacing 1`] = `
min-height: 0;
}
-
-
+
+ class="components-flex components-h-stack components-v-stack emotion-0 emotion-1"
+ data-wp-c16t="true"
+ data-wp-component="VStack"
+ >
+
+
+
`;
diff --git a/packages/components/src/v-stack/test/index.tsx b/packages/components/src/v-stack/test/index.tsx
index 29cd5c5be51bb9..cf35691d0858f6 100644
--- a/packages/components/src/v-stack/test/index.tsx
+++ b/packages/components/src/v-stack/test/index.tsx
@@ -17,7 +17,7 @@ describe( 'props', () => {
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
} );
test( 'should render alignment', () => {
@@ -27,7 +27,7 @@ describe( 'props', () => {
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
} );
test( 'should render spacing', () => {
@@ -37,6 +37,6 @@ describe( 'props', () => {
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
} );
} );
diff --git a/packages/components/src/view/test/__snapshots__/index.js.snap b/packages/components/src/view/test/__snapshots__/index.js.snap
index dbdd3f54df453d..91a45d6d98dd0e 100644
--- a/packages/components/src/view/test/__snapshots__/index.js.snap
+++ b/packages/components/src/view/test/__snapshots__/index.js.snap
@@ -1,41 +1,51 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`props should render as another element 1`] = `
-
-
-
+
`;
exports[`props should render correctly 1`] = `
-
-
+
`;
exports[`props should render with custom styles (Array) 1`] = `
-
-
-
+
`;
exports[`props should render with custom styles (object) 1`] = `
-
-
-
+
`;
exports[`props should render with custom styles (string) 1`] = `
-
-
-
+
`;
diff --git a/packages/components/src/view/test/index.js b/packages/components/src/view/test/index.js
index d55dcb45dec01c..56c6f7cd7a1487 100644
--- a/packages/components/src/view/test/index.js
+++ b/packages/components/src/view/test/index.js
@@ -15,7 +15,7 @@ describe( 'props', () => {
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
} );
test( 'should render as another element', () => {
@@ -24,7 +24,7 @@ describe( 'props', () => {
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
} );
test( 'should render with custom styles (string)', () => {
@@ -38,7 +38,7 @@ describe( 'props', () => {
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
} );
test( 'should render with custom styles (object)', () => {
@@ -52,7 +52,7 @@ describe( 'props', () => {
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
} );
test( 'should render with custom styles (Array)', () => {
@@ -69,6 +69,6 @@ describe( 'props', () => {
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
} );
} );
diff --git a/packages/edit-post/src/components/sidebar/plugin-post-status-info/test/__snapshots__/index.js.snap b/packages/edit-post/src/components/sidebar/plugin-post-status-info/test/__snapshots__/index.js.snap
index 5eaa6e72f717ba..f4861349d4434e 100644
--- a/packages/edit-post/src/components/sidebar/plugin-post-status-info/test/__snapshots__/index.js.snap
+++ b/packages/edit-post/src/components/sidebar/plugin-post-status-info/test/__snapshots__/index.js.snap
@@ -1,9 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`PluginPostStatusInfo renders fill properly 1`] = `
-
- My plugin post status info
+
+
+ My plugin post status info
+
`;
diff --git a/packages/edit-post/src/components/sidebar/plugin-post-status-info/test/index.js b/packages/edit-post/src/components/sidebar/plugin-post-status-info/test/index.js
index b27db6820b46c4..f989a162a559fa 100644
--- a/packages/edit-post/src/components/sidebar/plugin-post-status-info/test/index.js
+++ b/packages/edit-post/src/components/sidebar/plugin-post-status-info/test/index.js
@@ -24,6 +24,6 @@ describe( 'PluginPostStatusInfo', () => {
);
- expect( container.firstChild ).toMatchSnapshot();
+ expect( container ).toMatchSnapshot();
} );
} );