From b720106392a6a85e239aa4815f899749e01ff699 Mon Sep 17 00:00:00 2001 From: Simone Taeggi Date: Tue, 15 Nov 2022 15:56:31 +0100 Subject: [PATCH 1/5] trigger the didGoToCTB event when clicking on the Content Type Builder link --- .../GuidedTour/Modal/tests/index.test.js | 174 ++-- .../admin/src/components/LeftMenu/index.js | 21 +- .../__snapshots__/RelationInput.test.js.snap | 4 +- .../components/Wysiwyg/tests/index.test.js | 274 +++-- .../pages/App/tests/index.test.js | 161 ++- .../tests/__snapshots__/index.test.js.snap | 176 +--- .../tests/__snapshots__/index.test.js.snap | 46 +- .../components/Login/tests/BaseLogin.test.js | 26 +- .../components/Register/tests/index.test.js | 26 +- .../tests/__snapshots__/index.test.js.snap | 16 +- .../ApiTokens/ListView/tests/index.test.js | 86 +- .../tests/__snapshots__/index.test.js.snap | 521 ++++------ .../ApplicationInfosPage/tests/index.test.js | 38 +- .../tests/__snapshots__/index.test.js.snap | 2 +- .../pages/Users/ListPage/tests/index.test.js | 384 ++++--- .../Webhooks/ListView/tests/index.test.js | 130 +-- .../tests/__snapshots__/index.test.js.snap | 307 +++--- .../tests/__snapshots__/index.test.js.snap | 972 ++++-------------- .../SearchURLQuery/tests/index.test.js | 29 +- .../AssetCard/tests/DocAssetCard.test.js | 93 +- .../AssetCard/tests/ImageAssetCard.test.js | 89 +- .../SearchAsset/tests/index.test.js | 21 +- .../tests/__snapshots__/index.test.js.snap | 291 +++--- .../__snapshots__/AssetList.test.js.snap | 44 +- .../__snapshots__/BulkMoveDialog.test.js.snap | 168 ++- .../EditAssetDialog.test.js.snap | 478 ++++----- .../tests/__snapshots__/index.test.js.snap | 478 ++++----- .../EditFolderDialog.test.js.snap | 218 ++-- .../__snapshots__/FolderCard.test.js.snap | 14 +- .../__snapshots__/SelectTree.test.js.snap | 2 +- .../PendingAssetStep.test.js.snap | 444 ++++---- .../UploadAssetDialog.test.js.snap | 410 ++++---- .../pages/EmailTemplates/tests/index.test.js | 26 - .../Roles/CreatePage/tests/index.test.js | 4 +- .../pages/Roles/EditPage/tests/index.test.js | 4 +- .../pages/Roles/ListPage/tests/index.test.js | 59 +- 36 files changed, 2425 insertions(+), 3811 deletions(-) diff --git a/packages/core/admin/admin/src/components/GuidedTour/Modal/tests/index.test.js b/packages/core/admin/admin/src/components/GuidedTour/Modal/tests/index.test.js index 82f1f848a57..1d2350f4940 100644 --- a/packages/core/admin/admin/src/components/GuidedTour/Modal/tests/index.test.js +++ b/packages/core/admin/admin/src/components/GuidedTour/Modal/tests/index.test.js @@ -52,12 +52,12 @@ describe('', () => { padding: 40px; } - .c13 { + .c12 { margin-right: 40px; min-width: 1.875rem; } - .c18 { + .c17 { background: #4945ff; padding: 8px; border-radius: 50%; @@ -101,7 +101,7 @@ describe('', () => { justify-content: flex-end; } - .c12 { + .c11 { -webkit-align-items: stretch; -webkit-box-align: stretch; -ms-flex-align: stretch; @@ -115,7 +115,7 @@ describe('', () => { flex-direction: row; } - .c16 { + .c15 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -129,7 +129,7 @@ describe('', () => { flex-direction: row; } - .c21 { + .c20 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -155,7 +155,7 @@ describe('', () => { width: 41.25rem; } - .c22 { + .c21 { padding-bottom: 24px; } @@ -182,16 +182,16 @@ describe('', () => { margin-top: 40px; } - .c23 > * { + .c22 > * { margin-top: 0; margin-bottom: 0; } - .c23 > * + * { + .c22 > * + * { margin-top: 16px; } - .c15 { + .c14 { color: #4945ff; font-weight: 600; font-size: 0.6875rem; @@ -199,14 +199,14 @@ describe('', () => { text-transform: uppercase; } - .c19 { + .c18 { font-weight: 500; color: #ffffff; font-size: 0.875rem; line-height: 1.43; } - .c20 { + .c19 { font-weight: 600; color: #32324d; font-weight: 600; @@ -214,24 +214,24 @@ describe('', () => { line-height: 1.25; } - .c24 { + .c23 { color: #32324d; font-size: 0.875rem; line-height: 1.43; } - .c28 { + .c27 { font-weight: 600; color: #32324d; font-size: 0.75rem; line-height: 1.33; } - .c30 { + .c29 { padding-left: 8px; } - .c25 { + .c24 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -245,21 +245,21 @@ describe('', () => { outline: none; } - .c25 svg { + .c24 svg { height: 12px; width: 12px; } - .c25 svg > g, - .c25 svg path { + .c24 svg > g, + .c24 svg path { fill: #ffffff; } - .c25[aria-disabled='true'] { + .c24[aria-disabled='true'] { pointer-events: none; } - .c25:after { + .c24:after { -webkit-transition-property: all; transition-property: all; -webkit-transition-duration: 0.2s; @@ -274,11 +274,11 @@ describe('', () => { border: 2px solid transparent; } - .c25:focus-visible { + .c24:focus-visible { outline: none; } - .c25:focus-visible:after { + .c24:focus-visible:after { border-radius: 8px; content: ''; position: absolute; @@ -289,7 +289,7 @@ describe('', () => { border: 2px solid #4945ff; } - .c26 { + .c25 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -299,7 +299,7 @@ describe('', () => { border: 1px solid #4945ff; } - .c26 .c29 { + .c25 .c28 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -310,54 +310,54 @@ describe('', () => { align-items: center; } - .c26 .c27 { + .c25 .c26 { color: #ffffff; } - .c26[aria-disabled='true'] { + .c25[aria-disabled='true'] { border: 1px solid #dcdce4; background: #eaeaef; } - .c26[aria-disabled='true'] .c27 { + .c25[aria-disabled='true'] .c26 { color: #666687; } - .c26[aria-disabled='true'] svg > g, - .c26[aria-disabled='true'] svg path { + .c25[aria-disabled='true'] svg > g, + .c25[aria-disabled='true'] svg path { fill: #666687; } - .c26[aria-disabled='true']:active { + .c25[aria-disabled='true']:active { border: 1px solid #dcdce4; background: #eaeaef; } - .c26[aria-disabled='true']:active .c27 { + .c25[aria-disabled='true']:active .c26 { color: #666687; } - .c26[aria-disabled='true']:active svg > g, - .c26[aria-disabled='true']:active svg path { + .c25[aria-disabled='true']:active svg > g, + .c25[aria-disabled='true']:active svg path { fill: #666687; } - .c26:hover { + .c25:hover { border: 1px solid #7b79ff; background: #7b79ff; } - .c26:active { + .c25:active { border: 1px solid #4945ff; background: #4945ff; } - .c26 svg > g, - .c26 svg path { + .c25 svg > g, + .c25 svg path { fill: #ffffff; } - .c31 { + .c30 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -369,7 +369,7 @@ describe('', () => { background: #ffffff; } - .c31 .c29 { + .c30 .c28 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -380,62 +380,62 @@ describe('', () => { align-items: center; } - .c31 .c27 { + .c30 .c26 { color: #ffffff; } - .c31[aria-disabled='true'] { + .c30[aria-disabled='true'] { border: 1px solid #dcdce4; background: #eaeaef; } - .c31[aria-disabled='true'] .c27 { + .c30[aria-disabled='true'] .c26 { color: #666687; } - .c31[aria-disabled='true'] svg > g, - .c31[aria-disabled='true'] svg path { + .c30[aria-disabled='true'] svg > g, + .c30[aria-disabled='true'] svg path { fill: #666687; } - .c31[aria-disabled='true']:active { + .c30[aria-disabled='true']:active { border: 1px solid #dcdce4; background: #eaeaef; } - .c31[aria-disabled='true']:active .c27 { + .c30[aria-disabled='true']:active .c26 { color: #666687; } - .c31[aria-disabled='true']:active svg > g, - .c31[aria-disabled='true']:active svg path { + .c30[aria-disabled='true']:active svg > g, + .c30[aria-disabled='true']:active svg path { fill: #666687; } - .c31:hover { + .c30:hover { background-color: #f6f6f9; } - .c31:active { + .c30:active { background-color: #eaeaef; } - .c31 .c27 { + .c30 .c26 { color: #32324d; } - .c31 svg > g, - .c31 svg path { + .c30 svg > g, + .c30 svg path { fill: #32324d; } - .c11 { + .c10 { padding-right: 32px; padding-bottom: 0px; padding-left: 32px; } - .c14 { + .c13 { background: #7b79ff; border-radius: 4px; width: 0.125rem; @@ -443,23 +443,11 @@ describe('', () => { min-height: 1.5rem; } - .c17 { + .c16 { padding-top: 12px; padding-bottom: 12px; } - .c10 { - 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; - } - .c8 { display: -webkit-box; display: -webkit-flex; @@ -621,18 +609,12 @@ describe('', () => { >
3 steps to get started
3 @@ -689,50 +671,50 @@ describe('', () => {

🧠 Create a first Collection type

Collection types help you manage several entries, Single types are suitable to manage only one entry. Ex: For a Blog website, Articles would be a Collection type whereas a Homepage would be a Single type.