+
+ Surface
+
`;
diff --git a/packages/components/src/surface/test/index.tsx b/packages/components/src/surface/test/index.tsx
index 44c2f1fac785e7..c9a4b0598e32aa 100644
--- a/packages/components/src/surface/test/index.tsx
+++ b/packages/components/src/surface/test/index.tsx
@@ -16,43 +16,33 @@ describe( 'props', () => {
} );
test( 'should render correctly', () => {
- expect( base.container.firstChild ).toMatchSnapshot();
+ expect( base.container ).toMatchSnapshot();
} );
test( 'should render variants', () => {
const { container } = render(
Surface
);
- expect( container.firstChild ).toMatchDiffSnapshot(
- base.container.firstChild
- );
+ expect( container ).toMatchDiffSnapshot( base.container );
} );
test( 'should render borderLeft', () => {
const { container } = render(
Surface );
- expect( container.firstChild ).toMatchDiffSnapshot(
- base.container.firstChild
- );
+ expect( container ).toMatchDiffSnapshot( base.container );
} );
test( 'should render borderRight', () => {
const { container } = render(
Surface );
- expect( container.firstChild ).toMatchDiffSnapshot(
- base.container.firstChild
- );
+ expect( container ).toMatchDiffSnapshot( base.container );
} );
test( 'should render borderTop', () => {
const { container } = render(
Surface );
- expect( container.firstChild ).toMatchDiffSnapshot(
- base.container.firstChild
- );
+ expect( container ).toMatchDiffSnapshot( base.container );
} );
test( 'should render borderBottom', () => {
const { container } = render(
Surface );
- expect( container.firstChild ).toMatchDiffSnapshot(
- base.container.firstChild
- );
+ expect( container ).toMatchDiffSnapshot( base.container );
} );
} );
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 a97207b549fd0f..70fd3df3a5b484 100644
--- a/packages/components/src/ui/spinner/test/__snapshots__/index.js.snap
+++ b/packages/components/src/ui/spinner/test/__snapshots__/index.js.snap
@@ -5,19 +5,19 @@ Snapshot Diff:
- First value
+ Second value
-@@ -10,11 +10,11 @@
- class="css-1rq9ofd-BarsWrapperView e1s9yo7h1"
- style="transform: scale(0.4444444444444444);"
- >
-
-
+
+
+@@ -2,16 +2,16 @@
+
`;
diff --git a/packages/components/src/ui/spinner/test/index.js b/packages/components/src/ui/spinner/test/index.js
index 883d7a78917be3..aa9a4360fedff7 100644
--- a/packages/components/src/ui/spinner/test/index.js
+++ b/packages/components/src/ui/spinner/test/index.js
@@ -19,9 +19,7 @@ describe( 'props', () => {
const { container: secondRenderContainer } = render(
);
- expect( secondRenderContainer.firstChild ).toMatchDiffSnapshot(
- container.firstChild
- );
+ expect( secondRenderContainer ).toMatchDiffSnapshot( container );
} );
test( 'should render size', () => {
@@ -29,8 +27,6 @@ describe( 'props', () => {
const { container: secondRenderContainer } = render(
);
- expect( secondRenderContainer.firstChild ).toMatchDiffSnapshot(
- container.firstChild
- );
+ expect( secondRenderContainer ).toMatchDiffSnapshot( container );
} );
} );