diff --git a/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/tests/__snapshots__/index.test.js.snap b/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/tests/__snapshots__/index.test.js.snap index bcfb8d55f4..dc23a14f57 100644 --- a/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/tests/__snapshots__/index.test.js.snap +++ b/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/tests/__snapshots__/index.test.js.snap @@ -1,6 +1,18 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1`] = ` +.c84 { + border: 0; + -webkit-clip: rect(0 0 0 0); + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} + .c22 { background: #ffffff; padding-top: 24px; @@ -978,856 +990,880 @@ exports[`ADMIN | CM | LV | Configure the view renders and matches the snapshot 1 } } -
+
-
-
-
+
+
-
-

- Configure the view - Michka -

+ + + Back + +
- -
-

- Define the settings of the list view. -

-
-
-
-
-
-

- Settings -

-
-
+

+ Configure the view - Michka +

+
+ +
+

+ Define the settings of the list view. +

+
+
+
+
+
+

+ Settings +

+
+
+
+
+
+ +
-
-
-
+
+ +
-
-
-
+
+ +
-
+
+
+
+
+
+ +
+ Entries per page +
+
+
+ +
+
+
+

+ Note: You can override this value in the Collection Type settings page. +

+
+
+
+
+
+
+
+
+ +
+ Default sort attribute +
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ +
+ Default sort order +
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+

+ View +

+
+
+
+
- Enable bulk actions +
+
+ + + + + + + + + + + + + hey + +
+
+ + +
+
- +
- on - + + +
- +
+
+
+
+ +
- -
-
-
-
-
-
-
-
- -
- -
-
-
-

- Note: You can override this value in the Collection Type settings page. -

-
+ + + +
-
-
-
-
- -
- Default sort attribute -
-
-
- -
-
-
-
-
- - -
-
-
-
- -
- Default sort order -
-
-
- -
-
-
-
-
- - - -
-
-
-
-

- View -

-
-
-
-
-
-
-
- - - - - - - - - - - - - hey - -
-
- - -
-
-
-
-
-
- - - - - - - - - - - - - address - -
-
- - -
-
-
-
-
-
-
- - - -
-
- - - + + + + +
+

+

+

`; @@ -2083,25 +2119,6 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` justify-content: space-between; } -.c85 { - background: #212134; - padding: 8px; - border-radius: 4px; -} - -.c87 { - font-weight: 600; - color: #ffffff; - font-size: 0.75rem; - line-height: 1.33; -} - -.c86 { - position: absolute; - z-index: 4; - display: none; -} - .c82 { display: -webkit-box; display: -webkit-flex; @@ -2734,92 +2751,6 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` gap: 16px; } -.c95 { - color: #32324d; - font-size: 0.875rem; - line-height: 1.43; -} - -.c88 { - background: #ffffff; - padding: 4px; - border-radius: 4px; -} - -.c91 { - padding: 4px; -} - -.c94 { - padding: 8px; -} - -.c92 { - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; -} - -.c89 { - box-shadow: 0px 1px 4px rgba(33,33,52,0.1); - position: absolute; - z-index: 4; - border: 1px solid #eaeaef; - background: #ffffff; -} - -.c90 { - max-height: 15rem; - overflow-y: auto; - overflow-x: hidden; -} - -.c90::-webkit-scrollbar { - -webkit-appearance: none; - width: 4px; -} - -.c90::-webkit-scrollbar-track { - background: #ffffff; -} - -.c90::-webkit-scrollbar-thumb { - background: #eaeaef; - border-radius: 4px; - margin-right: 10px; -} - -.c93 { - border: none; - padding: 0; - background: transparent; - cursor: pointer; - text-align: left; - width: 100%; - color: #32324d; - border-radius: 4px; -} - -.c93:focus { - background-color: #f0f0ff; -} - -.c93:not([aria-disabled]):hover { - background-color: #f0f0ff; -} - .c76 { display: -webkit-box; display: -webkit-flex; @@ -2927,7 +2858,7 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` } } - +
@@ -3905,82 +3836,5 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` role="alert" />
-
- -
-
-
-
- -
-
-
- +
`; diff --git a/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/tests/index.test.js b/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/tests/index.test.js index 916caa4d58..dde69be703 100644 --- a/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/tests/index.test.js +++ b/packages/core/admin/admin/src/content-manager/pages/ListSettingsView/tests/index.test.js @@ -121,7 +121,7 @@ describe('ADMIN | CM | LV | Configure the view', () => { expect(screen.getByText('Configure the view - Michka')).toBeInTheDocument() ); - expect(container.firstChild).toMatchSnapshot(); + expect(container).toMatchSnapshot(); }); it('should keep plugins query params when arriving on the page and going back', async () => { @@ -145,7 +145,7 @@ describe('ADMIN | CM | LV | Configure the view', () => { it('should add field', async () => { const history = createMemoryHistory(); - const { container } = render(makeApp(history), { container: document.body }); + const { container } = render(makeApp(history)); await waitFor(() => expect(screen.getByText('Configure the view - Michka')).toBeInTheDocument() @@ -180,7 +180,7 @@ describe('ADMIN | CM | LV | Configure the view', () => { it('should open edit modal', async () => { const history = createMemoryHistory(); - render(makeApp(history), { container: document.body }); + render(makeApp(history)); await waitFor(() => expect(screen.getByText('Configure the view - Michka')).toBeInTheDocument() ); @@ -195,7 +195,7 @@ describe('ADMIN | CM | LV | Configure the view', () => { it('should not show sortable toggle input if field not sortable', async () => { const history = createMemoryHistory(); - const { queryByText } = render(makeApp(history), { container: document.body }); + const { queryByText } = render(makeApp(history)); await waitFor(() => expect(screen.getByText('Configure the view - Michka')).toBeInTheDocument() ); @@ -208,7 +208,7 @@ describe('ADMIN | CM | LV | Configure the view', () => { it('should show sortable toggle input if field sortable', async () => { const history = createMemoryHistory(); - const { queryByTestId } = render(makeApp(history), { container: document.body }); + const { queryByTestId } = render(makeApp(history)); await waitFor(() => expect(screen.getByText('Configure the view - Michka')).toBeInTheDocument() );