From 6e0c92db8e26fafc9de5c9f990c0edd823f53751 Mon Sep 17 00:00:00 2001 From: Francisco Di Giandomenico Date: Tue, 30 Nov 2021 11:08:17 -0500 Subject: [PATCH] API Console v6.6.6 (#730) * feat: upgrade deps * 6.6.6 * test: added two waitUntil to fix failing tests * test: added two more waitUntil to fix failing tests * test: added another waitUntil to fix failing tests * test: added another waitUntil to fix failing tests * test: added another waitUntil to fix failing tests * test: documentationTryItButton is now async and has waitUntil inside * test: added more waitUntil to fix failing tests * test: wait until body renders media type --- package-lock.json | 380 +++++++++++-------------- package.json | 14 +- test/api-console-documentation.test.js | 23 +- test/api-console-request.test.js | 44 ++- test/api-console.amf.test.js | 1 + test/testHelper.js | 6 +- 6 files changed, 210 insertions(+), 258 deletions(-) diff --git a/package-lock.json b/package-lock.json index ad0043886..930336c91 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,13 +1,13 @@ { "name": "api-console", - "version": "6.6.5", + "version": "6.6.6", "lockfileVersion": 1, "requires": true, "dependencies": { "@advanced-rest-client/arc-cookies": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@advanced-rest-client/arc-cookies/-/arc-cookies-0.2.0.tgz", - "integrity": "sha512-acD0zqaOLdI3xLnhEKH1CaiqHmQKwoZfq+KYPchEsgYqJGyuYL9obHzi8hugmQog2sgKxtsMn5V2NQZZDZVxdQ==", + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@advanced-rest-client/arc-cookies/-/arc-cookies-0.2.1.tgz", + "integrity": "sha512-YxziYHQh5+ZO/h9yFJG2McJ59z6zI+yILUAVWmFXZpqgrpP0pB+DIRbm2tTIi5WhO0Nc+nU72U/WIVAJ0cnFFQ==", "requires": { "@advanced-rest-client/arc-events": "^0.2.10", "@advanced-rest-client/arc-icons": "^3.3.3", @@ -48,21 +48,21 @@ } }, "@advanced-rest-client/arc-headers": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/@advanced-rest-client/arc-headers/-/arc-headers-0.1.10.tgz", - "integrity": "sha512-H3mFYOnqHlSMgSqg0pFtR7kluSIgAMqdT4+02AUuDD6DuXqzhtxzY9OLQaZFOnQ/TQ0+UO95Jvk+pxcKSA1E3Q==", + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/@advanced-rest-client/arc-headers/-/arc-headers-0.1.13.tgz", + "integrity": "sha512-iLAV8W0xlfy//JNeIR175CWWzN48K/tdR9N1LLc6VKPJbLo8S3H2hReAuuRDKgTYRXaiGQHzR/5VU+0tqw/goA==", "requires": { "@advanced-rest-client/arc-definitions": "^3.1.1", - "@advanced-rest-client/arc-events": "^0.2.13", - "@advanced-rest-client/arc-icons": "^3.2.2", - "@advanced-rest-client/arc-types": "^0.2.47", + "@advanced-rest-client/arc-events": "^0.2.21", + "@advanced-rest-client/arc-icons": "^3.3.4", + "@advanced-rest-client/arc-types": "^0.2.62", "@advanced-rest-client/clipboard-copy": "^3.0.1", "@advanced-rest-client/code-mirror": "^3.1.4", - "@advanced-rest-client/events-target-mixin": "^3.2.3", - "@anypoint-web-components/anypoint-autocomplete": "^0.2.8", - "@anypoint-web-components/anypoint-button": "^1.1.1", - "@anypoint-web-components/anypoint-input": "^0.2.23", - "@anypoint-web-components/anypoint-switch": "^0.1.4", + "@advanced-rest-client/events-target-mixin": "^3.2.6", + "@anypoint-web-components/anypoint-autocomplete": "^0.2.13", + "@anypoint-web-components/anypoint-button": "^1.2.4", + "@anypoint-web-components/anypoint-input": "^0.2.27", + "@anypoint-web-components/anypoint-switch": "^0.1.11", "@open-wc/dedupe-mixin": "^1.3.0", "lit-element": "^2.4.0", "lit-html": "^1.3.0" @@ -135,17 +135,17 @@ } }, "@advanced-rest-client/arc-response": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/@advanced-rest-client/arc-response/-/arc-response-0.3.7.tgz", - "integrity": "sha512-nRHydp0JRVFyji3SpqAWT6SgbbOxvuAzPIdeSCoAf7a9UxDDmRhXpPaBhELnHJ/NgLBGHp447I6xisFxevt8sA==", + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/@advanced-rest-client/arc-response/-/arc-response-0.3.8.tgz", + "integrity": "sha512-CN9iZ8OlpEtjgQVw2PvZLamPUrlbsU1WLFsBxDvLAfXE91ahiUyUsozrOkk8NteEaehVPQEDYxlRYFVlCf9jXA==", "requires": { "@advanced-rest-client/arc-events": "^0.2.21", - "@advanced-rest-client/arc-headers": "^0.1.10", + "@advanced-rest-client/arc-headers": "^0.1.11", "@advanced-rest-client/arc-icons": "^3.3.4", - "@advanced-rest-client/arc-types": "^0.2.61", - "@advanced-rest-client/date-time": "^3.0.2", - "@anypoint-web-components/anypoint-button": "^1.2.3", - "@anypoint-web-components/anypoint-item": "^1.1.2", + "@advanced-rest-client/arc-types": "^0.2.62", + "@advanced-rest-client/date-time": "^3.0.3", + "@anypoint-web-components/anypoint-button": "^1.2.4", + "@anypoint-web-components/anypoint-item": "^1.1.3", "@anypoint-web-components/anypoint-listbox": "^1.1.7", "@anypoint-web-components/anypoint-menu-button": "^0.1.5", "@api-client/har": "^0.2.1", @@ -213,35 +213,35 @@ } }, "@advanced-rest-client/body-editor": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/@advanced-rest-client/body-editor/-/body-editor-0.2.5.tgz", - "integrity": "sha512-2YRxPs5boZer/A0jt1OAmYbnXiBMUOmvR7JIuqNZ1gIjt7m+JkgvB68dNpgu5AUqYsLvytM3MFyjRFnzdPgn/g==", + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/@advanced-rest-client/body-editor/-/body-editor-0.2.7.tgz", + "integrity": "sha512-WgJ/w7/wYAlUQyuV6KVyGSjyJwLcaEK9EetIepq9CCHYIZiM0rptIqMMgFhJwYQ52cPEZVBSD4ecxN6EJD5riA==", "requires": { - "@advanced-rest-client/arc-events": "^0.2.17", - "@advanced-rest-client/arc-icons": "^3.3.3", - "@advanced-rest-client/arc-resizable-mixin": "^1.2.2", - "@advanced-rest-client/events-target-mixin": "^3.2.4", + "@advanced-rest-client/arc-events": "^0.2.21", + "@advanced-rest-client/arc-icons": "^3.3.4", + "@advanced-rest-client/arc-resizable-mixin": "^1.2.3", + "@advanced-rest-client/events-target-mixin": "^3.2.6", "@advanced-rest-client/monaco-support": "^1.0.1", - "@anypoint-web-components/anypoint-button": "^1.2.2", - "@anypoint-web-components/anypoint-dialog": "^0.1.9", - "@anypoint-web-components/anypoint-dropdown-menu": "^0.1.21", - "@anypoint-web-components/anypoint-input": "^0.2.26", - "@anypoint-web-components/anypoint-item": "^1.1.2", + "@anypoint-web-components/anypoint-button": "^1.2.4", + "@anypoint-web-components/anypoint-dialog": "^0.1.10", + "@anypoint-web-components/anypoint-dropdown-menu": "^0.1.22", + "@anypoint-web-components/anypoint-input": "^0.2.27", + "@anypoint-web-components/anypoint-item": "^1.1.3", "@anypoint-web-components/anypoint-listbox": "^1.1.7", - "@anypoint-web-components/anypoint-switch": "^0.1.10", + "@anypoint-web-components/anypoint-switch": "^0.1.11", "lit-element": "^2.5.1", "lit-html": "^1.4.1", "monaco-editor": "^0.26.1" } }, "@advanced-rest-client/bottom-sheet": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/@advanced-rest-client/bottom-sheet/-/bottom-sheet-3.2.3.tgz", - "integrity": "sha512-m9xNHygVMAM8aubTpFarRUmkkDcHpdIsUkcVnmJGnE1/i/YL6RMg9KRF0jxFW9OasdTEggfn6jbuWPt3kdkfPg==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@advanced-rest-client/bottom-sheet/-/bottom-sheet-3.2.4.tgz", + "integrity": "sha512-BVNzMFgu3TZOf6g+vb6iaZSDa8+okZ0cxo/EzlI3CUOdjsPRatNDkNWfsnu/SX23DVPSzepe7ovVlyoqrBJfwA==", "requires": { - "@advanced-rest-client/arc-overlay-mixin": "^1.1.7", - "@polymer/iron-a11y-announcer": "^3.1.0", - "lit-element": "^2.4.0" + "@advanced-rest-client/arc-overlay-mixin": "^1.2.0", + "@polymer/iron-a11y-announcer": "^3.2.0", + "lit-element": "^2.5.1" } }, "@advanced-rest-client/clipboard-copy": { @@ -284,9 +284,9 @@ } }, "@advanced-rest-client/date-time": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@advanced-rest-client/date-time/-/date-time-3.0.2.tgz", - "integrity": "sha512-e5hJSVex/EHMo0YWZprOZUQs4KO/Bkt0KAUzjGrOZbpoafuK1Zs1Szu52KtEh7iui9jaTloWqhasrpnkqsgMDQ==" + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@advanced-rest-client/date-time/-/date-time-3.0.3.tgz", + "integrity": "sha512-SIHTcro+E6wB17dDqMP6DBsc93/rUHgoUCT++gdG8v7SqhBziDudMU0DcP+WyHSnPxpSSIe0WXpVhzeqcQ/OFw==" }, "@advanced-rest-client/events-target-mixin": { "version": "3.2.6", @@ -542,9 +542,9 @@ } }, "@anypoint-web-components/anypoint-checkbox": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/@anypoint-web-components/anypoint-checkbox/-/anypoint-checkbox-1.2.3.tgz", - "integrity": "sha512-lHshqOmDELMQF78MbUQdUDYeUTTq5bn4VGQSMt90f2QfQKanCSXUTZTPaNrwl4PADVppgXljUCKwe61B00vyYw==", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@anypoint-web-components/anypoint-checkbox/-/anypoint-checkbox-1.2.4.tgz", + "integrity": "sha512-nqFxsgeIOru1KaJLZ4vb6LLat8gdZchXqnckGdztE60GTPU/PB2bp0kFCZr7TQCjzfg0r40AULpFpRxJJP4elA==", "requires": { "@anypoint-web-components/anypoint-control-mixins": "^1.2.0", "@anypoint-web-components/anypoint-form-mixins": "^1.3.1", @@ -592,9 +592,9 @@ } }, "@anypoint-web-components/anypoint-dropdown-menu": { - "version": "0.1.22", - "resolved": "https://registry.npmjs.org/@anypoint-web-components/anypoint-dropdown-menu/-/anypoint-dropdown-menu-0.1.22.tgz", - "integrity": "sha512-xuekU9Q2WBfICFTfHUJtDaPhlk0iS+/nAwPdgJFY72XqELQgostyHWNLO0Oslxke9geI533vuycAntISkmK1xQ==", + "version": "0.1.23", + "resolved": "https://registry.npmjs.org/@anypoint-web-components/anypoint-dropdown-menu/-/anypoint-dropdown-menu-0.1.23.tgz", + "integrity": "sha512-wpuc3KSyCycGaeg68KQDuGI9IJ3dDguWUHh1O88rf7tVLayVZCYkP74/FWeVBwoVUaTxT9oUDtgAKOhrodjrVQ==", "requires": { "@anypoint-web-components/anypoint-button": "^1.2.4", "@anypoint-web-components/anypoint-control-mixins": "^1.2.0", @@ -614,9 +614,9 @@ } }, "@anypoint-web-components/anypoint-input": { - "version": "0.2.27", - "resolved": "https://registry.npmjs.org/@anypoint-web-components/anypoint-input/-/anypoint-input-0.2.27.tgz", - "integrity": "sha512-oDfraIlVwqwsb4sZZ+ILjXu0aotH/jMPzvN3rmmkM+D0AE/k0SaR8NxTEEt2t+HorVSw6iNK4lH6dyR+lkb3aA==", + "version": "0.2.28", + "resolved": "https://registry.npmjs.org/@anypoint-web-components/anypoint-input/-/anypoint-input-0.2.28.tgz", + "integrity": "sha512-kmlHdnx8ZYhN4KxvZBlXy75EerNuSIFHO00abazzh6P0pvxFbzfelvbI9tfJYarishSiHfbpJRjUOHi4JfMOHg==", "requires": { "@advanced-rest-client/arc-icons": "^3.3.3", "@anypoint-web-components/anypoint-button": "^1.2.2", @@ -701,9 +701,9 @@ } }, "@anypoint-web-components/anypoint-switch": { - "version": "0.1.11", - "resolved": "https://registry.npmjs.org/@anypoint-web-components/anypoint-switch/-/anypoint-switch-0.1.11.tgz", - "integrity": "sha512-fvptpZgHbpm+46AhxrNYK6yPKHHznabGb4pjR8nNv4DJuAPZNq7rdP2GUHjd6xNkhOCO3cd8NLOe+5+zB18dnw==", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/@anypoint-web-components/anypoint-switch/-/anypoint-switch-0.1.12.tgz", + "integrity": "sha512-ykJYLnla12ekTuR51F2PXmLwaxAl0dHl4GteegI4MnRD50MZgumNt2exDnAomsnJ4pDpCg93lSQ6s3188kIFsQ==", "requires": { "@anypoint-web-components/anypoint-control-mixins": "^1.2.0", "@anypoint-web-components/anypoint-form-mixins": "^1.3.1", @@ -751,9 +751,9 @@ } }, "@api-client/har": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@api-client/har/-/har-0.2.1.tgz", - "integrity": "sha512-91RPLOkF9+/GJ9GJdhHzthaPqGTRsk2fatpsHjfNPbsXujs41+gqulCsxSyATv29co5WYs99Mf2IikCXOoGjLg==", + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/@api-client/har/-/har-0.2.2.tgz", + "integrity": "sha512-VMASMt1SLM6wMZ0U32YYAm+eQJ+4LM7MfoyKhMG18lmrTMvbeGU8AScvXsCaKD5KJUU/UrsS00SOKnmGswEcDA==", "requires": { "@advanced-rest-client/arc-cookies": "^0.2.0", "@advanced-rest-client/arc-events": "^0.2.21", @@ -776,9 +776,9 @@ } }, "@api-components/api-annotation-document": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/@api-components/api-annotation-document/-/api-annotation-document-4.2.1.tgz", - "integrity": "sha512-YfbnU3ohqsJ7do2aNHrdUQS9lkW/1cSZyincp33QbLvsbIljOeLMrrfJd96WBKN4YCcy8tMLIAIZs9j6kslfWw==", + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@api-components/api-annotation-document/-/api-annotation-document-4.2.2.tgz", + "integrity": "sha512-mJ2QKPH6LXpFxgzE36VtsGM7B9aZEGcu4IVtbHXlBOxlGhHhfNINZDWYgNNBfm6ue8J+jtVGOR/oqWa4hWJF1w==", "requires": { "@advanced-rest-client/arc-icons": "^3.3.4", "@api-components/amf-helper-mixin": "^4.5.6", @@ -950,9 +950,9 @@ } }, "@api-components/api-headers": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@api-components/api-headers/-/api-headers-0.1.3.tgz", - "integrity": "sha512-lZWiZGKq38oTJk32sfQ0pmI+rdr0Ut3hrWRVrhGiys5HycdabLIoHE1ahJ9B2TaJ5T1yRuoth2V4S6vzqPDCtg==", + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/@api-components/api-headers/-/api-headers-0.1.4.tgz", + "integrity": "sha512-o5A6qUF504UJmOSFwmI4h6q9i1FeylRNarJJG5DmlpYsePmd3unAJJDxhuTXN/nApsr9eZ8RoTBwedBO6LlcWg==", "requires": { "@advanced-rest-client/arc-headers": "^0.1.7", "@anypoint-web-components/anypoint-button": "^1.1.1", @@ -1075,9 +1075,9 @@ } }, "@api-components/api-request": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@api-components/api-request/-/api-request-0.2.2.tgz", - "integrity": "sha512-SIcd2ODUG5mXE8lu3MPuJ80xYYvZNrNWUkpIFiUEHwGG9zrRI2fBxsmRzk9o84Rnz2/r5CfPd4gEW32fehI5Ww==", + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/@api-components/api-request/-/api-request-0.2.4.tgz", + "integrity": "sha512-3Zs8tnQC6qnZG5cfP3RdA6ybVcsvEQH9DfH4U1KcTt26l4sMTHCwpOOKYv14Mc7vj0JXmrPcXmut7L5TrbgyCw==", "requires": { "@advanced-rest-client/arc-events": "^0.2.13", "@advanced-rest-client/arc-headers": "^0.1.7", @@ -6252,9 +6252,9 @@ } }, "@web/test-runner-visual-regression": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/@web/test-runner-visual-regression/-/test-runner-visual-regression-0.6.3.tgz", - "integrity": "sha512-jw7WjELVmwtI0XLNV7veVct7S6z6YpHQCCIMQQMwt721a3IqjMmmRgEdYJpaNkEd1CeiGpF2W9sC4f77YUGBLw==", + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/@web/test-runner-visual-regression/-/test-runner-visual-regression-0.6.4.tgz", + "integrity": "sha512-Yrs7PgRVDAJ/LrNo7yOT++FmsAUYTo/Isju9GPJTFxOd5XhsBRWb6Nf97CPWHS+C/YynxI9gyjj/iidt8OPD8g==", "dev": true, "requires": { "@types/mkdirp": "^1.0.1", @@ -6267,16 +6267,6 @@ "pngjs": "^6.0.0" }, "dependencies": { - "@web/test-runner-commands": { - "version": "0.5.13", - "resolved": "https://registry.npmjs.org/@web/test-runner-commands/-/test-runner-commands-0.5.13.tgz", - "integrity": "sha512-FXnpUU89ALbRlh9mgBd7CbSn5uzNtr8gvnQZPOvGLDAJ7twGvZdUJEAisPygYx2BLPSFl3/Mre8pH8zshJb8UQ==", - "dev": true, - "requires": { - "@web/test-runner-core": "^0.10.20", - "mkdirp": "^1.0.4" - } - }, "mkdirp": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", @@ -7500,9 +7490,9 @@ } }, "codemirror": { - "version": "5.63.3", - "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.63.3.tgz", - "integrity": "sha512-1C+LELr+5grgJYqwZKqxrcbPsHFHapVaVAloBsFBASbpLnQqLw1U8yXJ3gT5D+rhxIiSpo+kTqN+hQ+9ialIXw==" + "version": "5.64.0", + "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-5.64.0.tgz", + "integrity": "sha512-fqr6CtDQdJ6iNMbD8NX2gH2G876nNDk+TO1rrYkgWnqQdO3O1Xa9tK6q+psqhJJgE5SpbaDcgdfLmukoUVE8pg==" }, "collection-visit": { "version": "1.0.0", @@ -7550,9 +7540,9 @@ } }, "colord": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.0.tgz", - "integrity": "sha512-D8guC3WXLzW892WdoQD+RhIRlfeQSZnTEOq+KxX6fak9ijrHt30oKF9L7jQovCA13pSIJJVFVEYzp4Y4f4k+Yg==", + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/colord/-/colord-2.9.1.tgz", + "integrity": "sha512-4LBMSt09vR0uLnPVkOUBnmxgoaeN4ewRbx801wY/bXcltXfpR/G46OdWn96XpYmCWuYvO46aBZP4NgX8HpNAcw==", "dev": true }, "colorette": { @@ -8325,12 +8315,6 @@ "resolved": "https://registry.npmjs.org/cryptojslib/-/cryptojslib-3.1.2.tgz", "integrity": "sha1-aEbccl6lCKhqwMnEQc0uyUTe82Y=" }, - "css-color-names": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-1.0.1.tgz", - "integrity": "sha512-/loXYOch1qU1biStIFsHH8SxTmOseh1IJqFvy8IujXOm1h+QjUdDhkzOrR5HG8K8mlxREj0yfi8ewCHx0eMxzA==", - "dev": true - }, "css-declaration-sorter": { "version": "6.1.3", "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.1.3.tgz", @@ -8384,37 +8368,37 @@ "dev": true }, "cssnano": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.0.8.tgz", - "integrity": "sha512-Lda7geZU0Yu+RZi2SGpjYuQz4HI4/1Y+BhdD0jL7NXAQ5larCzVn+PUGuZbDMYz904AXXCOgO5L1teSvgu7aFg==", + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-5.0.12.tgz", + "integrity": "sha512-U38V4x2iJ3ijPdeWqUrEr4eKBB5PbEKsNP5T8xcik2Au3LeMtiMHX0i2Hu9k51FcKofNZumbrcdC6+a521IUHg==", "dev": true, "requires": { - "cssnano-preset-default": "^5.1.4", + "cssnano-preset-default": "^5.1.8", "is-resolvable": "^1.1.0", "lilconfig": "^2.0.3", "yaml": "^1.10.2" } }, "cssnano-preset-default": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.1.4.tgz", - "integrity": "sha512-sPpQNDQBI3R/QsYxQvfB4mXeEcWuw0wGtKtmS5eg8wudyStYMgKOQT39G07EbW1LB56AOYrinRS9f0ig4Y3MhQ==", + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.1.8.tgz", + "integrity": "sha512-zWMlP0+AMPBVE852SqTrP0DnhTcTA2C1wAF92TKZ3Va+aUVqLIhkqKlnJIXXdqXD7RN+S1ujuWmNpvrJBiM/vg==", "dev": true, "requires": { "css-declaration-sorter": "^6.0.3", "cssnano-utils": "^2.0.1", "postcss-calc": "^8.0.0", - "postcss-colormin": "^5.2.0", - "postcss-convert-values": "^5.0.1", + "postcss-colormin": "^5.2.1", + "postcss-convert-values": "^5.0.2", "postcss-discard-comments": "^5.0.1", "postcss-discard-duplicates": "^5.0.1", "postcss-discard-empty": "^5.0.1", "postcss-discard-overridden": "^5.0.1", - "postcss-merge-longhand": "^5.0.2", - "postcss-merge-rules": "^5.0.2", + "postcss-merge-longhand": "^5.0.4", + "postcss-merge-rules": "^5.0.3", "postcss-minify-font-values": "^5.0.1", - "postcss-minify-gradients": "^5.0.2", - "postcss-minify-params": "^5.0.1", + "postcss-minify-gradients": "^5.0.3", + "postcss-minify-params": "^5.0.2", "postcss-minify-selectors": "^5.1.0", "postcss-normalize-charset": "^5.0.1", "postcss-normalize-display-values": "^5.0.1", @@ -8423,13 +8407,13 @@ "postcss-normalize-string": "^5.0.1", "postcss-normalize-timing-functions": "^5.0.1", "postcss-normalize-unicode": "^5.0.1", - "postcss-normalize-url": "^5.0.2", + "postcss-normalize-url": "^5.0.3", "postcss-normalize-whitespace": "^5.0.1", "postcss-ordered-values": "^5.0.2", - "postcss-reduce-initial": "^5.0.1", + "postcss-reduce-initial": "^5.0.2", "postcss-reduce-transforms": "^5.0.1", - "postcss-svgo": "^5.0.2", - "postcss-unique-selectors": "^5.0.1" + "postcss-svgo": "^5.0.3", + "postcss-unique-selectors": "^5.0.2" } }, "cssnano-utils": { @@ -11743,9 +11727,9 @@ "dev": true }, "jsrsasign": { - "version": "10.4.1", - "resolved": "https://registry.npmjs.org/jsrsasign/-/jsrsasign-10.4.1.tgz", - "integrity": "sha512-g2CP2nb8xKdmfZhuHaJEz1zVYTsZc+lUjLFvgbMX35/cUALK0G15sQfCbCpDg/UivkjCNlq0lV6FxCfPhv0shw==" + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/jsrsasign/-/jsrsasign-10.5.0.tgz", + "integrity": "sha512-AC1kfL1LJASKBLGv4bLLl+auFlsBajOxEcggL7fn8cp7nMRPhyln3LK/Q9lEDCrxYFU35NGUeFtUBCbasoF2Uw==" }, "jstransform": { "version": "11.0.3", @@ -12099,9 +12083,9 @@ } }, "lilconfig": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.3.tgz", - "integrity": "sha512-EHKqr/+ZvdKCifpNrJCKxBTgk5XupZA3y/aCPY9mxfgBzmgh93Mt/WqjjQ38oMxXuvDokaKiM3lAgvSH2sjtHg==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.0.4.tgz", + "integrity": "sha512-bfTIN7lEsiooCocSISTWXkiWJkRqtL9wYtYy+8EK3Y41qh3mpwPU0ycTOgjdY9ErwXCc8QyrQp82bdL0Xkm9yA==", "dev": true }, "lines-and-columns": { @@ -14047,22 +14031,14 @@ "dev": true }, "postcss": { - "version": "8.3.9", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.3.9.tgz", - "integrity": "sha512-f/ZFyAKh9Dnqytx5X62jgjhhzttjZS7hMsohcI7HEI5tjELX/HxCy3EFhsRxyzGvrzFF+82XPvCS8T9TFleVJw==", + "version": "8.4.4", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.4.tgz", + "integrity": "sha512-joU6fBsN6EIer28Lj6GDFoC/5yOZzLCfn0zHAn/MYXI7aPt4m4hK5KC5ovEZXy+lnCjmYIbQWngvju2ddyEr8Q==", "dev": true, "requires": { - "nanoid": "^3.1.28", - "picocolors": "^0.2.1", - "source-map-js": "^0.6.2" - }, - "dependencies": { - "picocolors": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", - "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==", - "dev": true - } + "nanoid": "^3.1.30", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.1" } }, "postcss-calc": { @@ -14076,21 +14052,21 @@ } }, "postcss-colormin": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.2.0.tgz", - "integrity": "sha512-+HC6GfWU3upe5/mqmxuqYZ9B2Wl4lcoUUNkoaX59nEWV4EtADCMiBqui111Bu8R8IvaZTmqmxrqOAqjbHIwXPw==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.2.1.tgz", + "integrity": "sha512-VVwMrEYLcHYePUYV99Ymuoi7WhKrMGy/V9/kTS0DkCoJYmmjdOMneyhzYUxcNgteKDVbrewOkSM7Wje/MFwxzA==", "dev": true, "requires": { "browserslist": "^4.16.6", "caniuse-api": "^3.0.0", - "colord": "^2.0.1", + "colord": "^2.9.1", "postcss-value-parser": "^4.1.0" } }, "postcss-convert-values": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.0.1.tgz", - "integrity": "sha512-C3zR1Do2BkKkCgC0g3sF8TS0koF2G+mN8xxayZx3f10cIRmTaAnpgpRQZjNekTZxM2ciSPoh2IWJm0VZx8NoQg==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.0.2.tgz", + "integrity": "sha512-KQ04E2yadmfa1LqXm7UIDwW1ftxU/QWZmz6NKnHnUvJ3LEYbbcX6i329f/ig+WnEByHegulocXrECaZGLpL8Zg==", "dev": true, "requires": { "postcss-value-parser": "^4.1.0" @@ -14132,27 +14108,25 @@ } }, "postcss-merge-longhand": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.0.2.tgz", - "integrity": "sha512-BMlg9AXSI5G9TBT0Lo/H3PfUy63P84rVz3BjCFE9e9Y9RXQZD3+h3YO1kgTNsNJy7bBc1YQp8DmSnwLIW5VPcw==", + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.0.4.tgz", + "integrity": "sha512-2lZrOVD+d81aoYkZDpWu6+3dTAAGkCKbV5DoRhnIR7KOULVrI/R7bcMjhrH9KTRy6iiHKqmtG+n/MMj1WmqHFw==", "dev": true, "requires": { - "css-color-names": "^1.0.1", "postcss-value-parser": "^4.1.0", "stylehacks": "^5.0.1" } }, "postcss-merge-rules": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.0.2.tgz", - "integrity": "sha512-5K+Md7S3GwBewfB4rjDeol6V/RZ8S+v4B66Zk2gChRqLTCC8yjnHQ601omj9TKftS19OPGqZ/XzoqpzNQQLwbg==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.0.3.tgz", + "integrity": "sha512-cEKTMEbWazVa5NXd8deLdCnXl+6cYG7m2am+1HzqH0EnTdy8fRysatkaXb2dEnR+fdaDxTvuZ5zoBdv6efF6hg==", "dev": true, "requires": { "browserslist": "^4.16.6", "caniuse-api": "^3.0.0", "cssnano-utils": "^2.0.1", - "postcss-selector-parser": "^6.0.5", - "vendors": "^1.0.3" + "postcss-selector-parser": "^6.0.5" } }, "postcss-minify-font-values": { @@ -14165,27 +14139,26 @@ } }, "postcss-minify-gradients": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.0.2.tgz", - "integrity": "sha512-7Do9JP+wqSD6Prittitt2zDLrfzP9pqKs2EcLX7HJYxsxCOwrrcLt4x/ctQTsiOw+/8HYotAoqNkrzItL19SdQ==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.0.3.tgz", + "integrity": "sha512-Z91Ol22nB6XJW+5oe31+YxRsYooxOdFKcbOqY/V8Fxse1Y3vqlNRpi1cxCqoACZTQEhl+xvt4hsbWiV5R+XI9Q==", "dev": true, "requires": { - "colord": "^2.6", + "colord": "^2.9.1", "cssnano-utils": "^2.0.1", "postcss-value-parser": "^4.1.0" } }, "postcss-minify-params": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.0.1.tgz", - "integrity": "sha512-4RUC4k2A/Q9mGco1Z8ODc7h+A0z7L7X2ypO1B6V8057eVK6mZ6xwz6QN64nHuHLbqbclkX1wyzRnIrdZehTEHw==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.0.2.tgz", + "integrity": "sha512-qJAPuBzxO1yhLad7h2Dzk/F7n1vPyfHfCCh5grjGfjhi1ttCnq4ZXGIW77GSrEbh9Hus9Lc/e/+tB4vh3/GpDg==", "dev": true, "requires": { "alphanum-sort": "^1.0.2", - "browserslist": "^4.16.0", + "browserslist": "^4.16.6", "cssnano-utils": "^2.0.1", - "postcss-value-parser": "^4.1.0", - "uniqs": "^2.0.0" + "postcss-value-parser": "^4.1.0" } }, "postcss-minify-selectors": { @@ -14314,9 +14287,9 @@ } }, "postcss-normalize-url": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.0.2.tgz", - "integrity": "sha512-k4jLTPUxREQ5bpajFQZpx8bCF2UrlqOTzP9kEqcEnOfwsRshWs2+oAFIHfDQB8GO2PaUaSE0NlTAYtbluZTlHQ==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.0.3.tgz", + "integrity": "sha512-qWiUMbvkRx3kc1Dp5opzUwc7MBWZcSDK2yofCmdvFBCpx+zFPkxBC1FASQ59Pt+flYfj/nTZSkmF56+XG5elSg==", "dev": true, "requires": { "is-absolute-url": "^3.0.3", @@ -14344,12 +14317,12 @@ } }, "postcss-reduce-initial": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.0.1.tgz", - "integrity": "sha512-zlCZPKLLTMAqA3ZWH57HlbCjkD55LX9dsRyxlls+wfuRfqCi5mSlZVan0heX5cHr154Dq9AfbH70LyhrSAezJw==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.0.2.tgz", + "integrity": "sha512-v/kbAAQ+S1V5v9TJvbGkV98V2ERPdU6XvMcKMjqAlYiJ2NtsHGlKYLPjWWcXlaTKNxooId7BGxeraK8qXvzKtw==", "dev": true, "requires": { - "browserslist": "^4.16.0", + "browserslist": "^4.16.6", "caniuse-api": "^3.0.0" } }, @@ -14374,30 +14347,29 @@ } }, "postcss-svgo": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.0.2.tgz", - "integrity": "sha512-YzQuFLZu3U3aheizD+B1joQ94vzPfE6BNUcSYuceNxlVnKKsOtdo6hL9/zyC168Q8EwfLSgaDSalsUGa9f2C0A==", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.0.3.tgz", + "integrity": "sha512-41XZUA1wNDAZrQ3XgWREL/M2zSw8LJPvb5ZWivljBsUQAGoEKMYm6okHsTjJxKYI4M75RQEH4KYlEM52VwdXVA==", "dev": true, "requires": { "postcss-value-parser": "^4.1.0", - "svgo": "^2.3.0" + "svgo": "^2.7.0" } }, "postcss-unique-selectors": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.0.1.tgz", - "integrity": "sha512-gwi1NhHV4FMmPn+qwBNuot1sG1t2OmacLQ/AX29lzyggnjd+MnVD5uqQmpXO3J17KGL2WAxQruj1qTd3H0gG/w==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.0.2.tgz", + "integrity": "sha512-w3zBVlrtZm7loQWRPVC0yjUwwpty7OM6DnEHkxcSQXO1bMS3RJ+JUS5LFMSDZHJcvGsRwhZinCWVqn8Kej4EDA==", "dev": true, "requires": { "alphanum-sort": "^1.0.2", - "postcss-selector-parser": "^6.0.5", - "uniqs": "^2.0.0" + "postcss-selector-parser": "^6.0.5" } }, "postcss-value-parser": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.1.0.tgz", - "integrity": "sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", "dev": true }, "pouchdb": { @@ -15529,9 +15501,9 @@ } }, "rollup": { - "version": "2.58.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.58.0.tgz", - "integrity": "sha512-NOXpusKnaRpbS7ZVSzcEXqxcLDOagN6iFS8p45RkoiMqPHDLwJm758UF05KlMoCRbLBTZsPOIa887gZJ1AiXvw==", + "version": "2.60.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.60.2.tgz", + "integrity": "sha512-1Bgjpq61sPjgoZzuiDSGvbI1tD91giZABgjCQBKM5aYLnzjq52GoDuWVwT/cm/MCxCMPU8gqQvkj8doQ5C8Oqw==", "dev": true, "requires": { "fsevents": "~2.3.2" @@ -15597,9 +15569,9 @@ } }, "rollup-plugin-postcss": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/rollup-plugin-postcss/-/rollup-plugin-postcss-4.0.1.tgz", - "integrity": "sha512-kUJHlpDGl9+kDfdUUbnerW0Mx1R0PL/6dgciUE/w19swYDBjug7RQfxIRvRGtO/cvCkynYyU8e/YFMI544vskA==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/rollup-plugin-postcss/-/rollup-plugin-postcss-4.0.2.tgz", + "integrity": "sha512-05EaY6zvZdmvPUDi3uCcAQoESDcYnv8ogJJQRp6V5kZ6J6P7uAVJlrTZcaaA20wTH527YTnKfkAoPxWI/jPp4w==", "dev": true, "requires": { "chalk": "^4.1.0", @@ -16243,9 +16215,9 @@ } }, "source-map-js": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-0.6.2.tgz", - "integrity": "sha512-/3GptzWzu0+0MBQFrDKzw/DvvMTUORvgY6k6jd/VS6iCR4RDTKWH6v6WPwQoUO8667uQEf9Oe38DxAYWY5F/Ug==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.1.tgz", + "integrity": "sha512-4+TN2b3tqOCd/kaGRJ/sTYA0tR0mdXx26ipdolxcwtJVqEnqNYvlCAt1q3ypy4QMlYus+Zh34RNtYLoq2oQ4IA==", "dev": true }, "source-map-resolve": { @@ -16718,9 +16690,9 @@ } }, "svgo": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.7.0.tgz", - "integrity": "sha512-aDLsGkre4fTDCWvolyW+fs8ZJFABpzLXbtdK1y71CKnHzAnpDxKXPj2mNKj+pyOXUCzFHzuxRJ94XOFygOWV3w==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-2.8.0.tgz", + "integrity": "sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==", "dev": true, "requires": { "@trysound/sax": "0.2.0", @@ -16728,7 +16700,7 @@ "css-select": "^4.1.3", "css-tree": "^1.1.3", "csso": "^4.2.0", - "nanocolors": "^0.1.12", + "picocolors": "^1.0.0", "stable": "^0.1.8" }, "dependencies": { @@ -16737,12 +16709,6 @@ "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", "dev": true - }, - "nanocolors": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/nanocolors/-/nanocolors-0.1.12.tgz", - "integrity": "sha512-2nMHqg1x5PU+unxX7PGY7AuYxl2qDx7PSrTRjizr8sxdd3l/3hBuWWaki62qmtYm2U5i4Z5E7GbjlyDFhs9/EQ==", - "dev": true } } }, @@ -17272,9 +17238,9 @@ "dev": true }, "typescript": { - "version": "4.4.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.4.tgz", - "integrity": "sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==", + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz", + "integrity": "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==", "dev": true }, "typescript-lit-html-plugin": { @@ -17314,9 +17280,9 @@ "dev": true }, "uglify-js": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.14.2.tgz", - "integrity": "sha512-rtPMlmcO4agTUfz10CbgJ1k6UAoXM2gWb3GoMPPZB/+/Ackf8lNWk11K4rYi2D0apgoFRLtQOZhb+/iGNJq26A==", + "version": "3.14.3", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.14.3.tgz", + "integrity": "sha512-mic3aOdiq01DuSVx0TseaEzMIVqebMZ0Z3vaeDhFEh9bsc24hV1TFvN74reA2vs08D0ZWfNjAcJ3UbVLaBss+g==", "dev": true }, "unbox-primitive": { @@ -17391,12 +17357,6 @@ "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", "integrity": "sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=" }, - "uniqs": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/uniqs/-/uniqs-2.0.0.tgz", - "integrity": "sha1-/+3ks2slKQaW5uFl1KWe25mOawI=", - "dev": true - }, "unique-string": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz", @@ -17702,12 +17662,6 @@ "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", "dev": true }, - "vendors": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.4.tgz", - "integrity": "sha512-/juG65kTL4Cy2su4P8HjtkTxk6VmJDiOPBufWniqQ6wknac6jNiXS9vU+hO3wgusiyqWlzTbVHi0dyJqRONg3w==", - "dev": true - }, "vscode-css-languageservice": { "version": "3.0.13", "resolved": "https://registry.npmjs.org/vscode-css-languageservice/-/vscode-css-languageservice-3.0.13.tgz", diff --git a/package.json b/package.json index d2bad806e..a8ecc1ff8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "api-console", "description": "The API Console to automatically generate API documentation from RAML and OAS files.", - "version": "6.6.5", + "version": "6.6.6", "license": "CPAL-1.0", "main": "index.js", "module": "index.js", @@ -62,7 +62,7 @@ "@polymer/iron-test-helpers": "^3.0.0", "@web/test-runner": "^0.12.5", "@web/test-runner-playwright": "^0.8.0", - "@web/test-runner-visual-regression": "^0.6.3", + "@web/test-runner-visual-regression": "^0.6.4", "amf-client-js": "^4.6.0", "body-parser": "^1.19.0", "deepmerge": "^4.2.1", @@ -76,16 +76,16 @@ "lint-staged": "^10.2.2", "multer": "^1.4.2", "node-cache": "^5.1.0", - "postcss": "^8.2.4", + "postcss": "^8.4.4", "rimraf": "^3.0.1", - "rollup": "^2.53.2", + "rollup": "^2.60.2", "rollup-plugin-cpy": "^2.0.1", - "rollup-plugin-postcss": "^4.0.0", + "rollup-plugin-postcss": "^4.0.2", "sinon": "^9.2.3", "tmp": "^0.2.1", - "typescript": "^4.1.3", + "typescript": "^4.5.2", "typescript-lit-html-plugin": "^0.9.0", - "uglify-js": "^3.12.5", + "uglify-js": "^3.14.3", "unzipper": "^0.10.10", "uuid": "^8.3.2" }, diff --git a/test/api-console-documentation.test.js b/test/api-console-documentation.test.js index 978b8c6b7..36b58a143 100644 --- a/test/api-console-documentation.test.js +++ b/test/api-console-documentation.test.js @@ -1,4 +1,4 @@ -import { fixture, assert, html, aTimeout, waitUntil } from '@open-wc/testing'; +import { fixture, assert, html, aTimeout, waitUntil, nextFrame } from '@open-wc/testing'; import { AmfLoader, ApiDescribe } from './amf-loader.js'; import '../api-console.js'; import { @@ -263,6 +263,7 @@ describe('API Console documentation', () => { }); it('should render security headers content', async () => { + await waitUntil(() => Boolean(documentationSecurity(element))); const item = documentationSecurity(element); const securityShadowRoot = item.shadowRoot; const headersDocument = securityShadowRoot.querySelector('api-headers-document'); @@ -509,6 +510,7 @@ describe('API Console documentation', () => { }); it('should render type documentation', async () => { + await waitUntil(() => Boolean(documentationType(element))); const item = documentationType(element); const docShadowRoot = item.shadowRoot; const description = 'This is number type'; @@ -662,26 +664,30 @@ describe('API Console documentation', () => { describe(`No overview ${noOverview ? 'enabled' : 'disabled'}`, () => { beforeEach(async () => { element.noOverview = noOverview; - await aTimeout(50); + await nextFrame(); await navigationSelectEndpointOverview(element, '/test-query-parameters', noOverview); - await aTimeout(100); + await waitUntil(() => Boolean(documentationEndpoint(element))); const item = documentationEndpoint(element); docShadowRoot = item.shadowRoot; }); - it('should render endpoint title', () => { + it('should render endpoint title', async () => { + await waitUntil(() => Boolean(docShadowRoot.querySelector('.title'))); assert.equal(docShadowRoot.querySelector('.title').innerText, 'Query Parameters'); }); - it('should render URL', () => { + it('should render URL', async () => { + await waitUntil(() => Boolean(docShadowRoot.querySelector('api-url'))); assert.equal(docShadowRoot.querySelector('api-url').shadowRoot.querySelector('.url-area').innerText.trim(), 'https://example/test-query-parameters'); }); - it('should render description', () => { + it('should render description', async () => { + await waitUntil(() => Boolean(docShadowRoot.querySelector('arc-marked'))); assert.equal(docShadowRoot.querySelector('arc-marked').querySelector('.markdown-body').innerText.trim(), 'Query parameters endpoint'); }); - it('should render methods', () => { + it('should render methods', async () => { + await waitUntil(() => Boolean(docShadowRoot.querySelector('.methods'))); const methodsSection = docShadowRoot.querySelector('.methods'); assert.exists(methodsSection); @@ -759,9 +765,10 @@ describe('API Console documentation', () => { const toggleButton = parametersSection.querySelector('.toggle-button'); assert.exists(toggleButton); toggleButton.click(); - await aTimeout(0); + await nextFrame(); const collapse = parametersSection.querySelector('anypoint-collapse'); + await waitUntil(() => collapse.querySelector('.media-type-selector').innerText === 'Media type: application/json'); assert.equal(collapse.querySelector('.media-type-selector').innerText, 'Media type: application/json'); assert.equal(collapse.querySelector('.any-info').innerText, 'Any instance of data is allowed.'); assert.equal(collapse.querySelector('.any-info-description').innerText, 'The API file specifies body for this request but it does not specify the data model.'); diff --git a/test/api-console-request.test.js b/test/api-console-request.test.js index cbe644d6f..1e6107846 100644 --- a/test/api-console-request.test.js +++ b/test/api-console-request.test.js @@ -8,7 +8,7 @@ import { requestBodySection, requestCredentialsSection, requestHeadersSection, requestPanel, requestQueryParamSection, requestSendButton, - requestUrlSection + requestUrlSection, } from './testHelper.js'; /** @typedef {import('..').ApiConsole} ApiConsole */ @@ -44,9 +44,8 @@ describe('API Console request', () => { describe('Sections', () => { beforeEach(async () => { await navigationSelectEndpointMethod(element, '/test-headers', 'post'); - await aTimeout(50); // @ts-ignore - documentationTryItButton(element).click(); + (await documentationTryItButton(element)).click(); await aTimeout(50); }); @@ -62,9 +61,8 @@ describe('API Console request', () => { describe('Headers', () => { beforeEach(async () => { await navigationSelectEndpointMethod(element, '/test-headers', 'post'); - await aTimeout(50); // @ts-ignore - documentationTryItButton(element).click(); + (await documentationTryItButton(element)).click(); await aTimeout(50); }); @@ -122,9 +120,8 @@ describe('API Console request', () => { describe('Body', () => { beforeEach(async () => { await navigationSelectEndpointMethod(element, '/test-headers', 'post'); - await aTimeout(100); // @ts-ignore - documentationTryItButton(element).click(); + (await documentationTryItButton(element)).click(); await aTimeout(50); }); @@ -163,9 +160,8 @@ describe('API Console request', () => { beforeEach(async () => { await navigationSelectEndpointMethod(element, '/test-custom-scheme', 'get'); - await aTimeout(50); // @ts-ignore - documentationTryItButton(element).click(); + (await documentationTryItButton(element)).click(); await aTimeout(50); credentialsSection = requestCredentialsSection(element); }); @@ -229,9 +225,8 @@ describe('API Console request', () => { beforeEach(async () => { await navigationSelectEndpointMethod(element, '/test-oauth10-scheme', 'get'); - await aTimeout(70); // @ts-ignore - documentationTryItButton(element).click(); + (await documentationTryItButton(element)).click(); await aTimeout(70); credentialsSection = requestCredentialsSection(element); }); @@ -280,9 +275,8 @@ describe('API Console request', () => { beforeEach(async () => { await navigationSelectEndpointMethod(element, '/test-oauth20-scheme', 'get'); - await aTimeout(50); // @ts-ignore - documentationTryItButton(element).click(); + (await documentationTryItButton(element)).click(); await aTimeout(50); credentialsSection = requestCredentialsSection(element); }); @@ -324,9 +318,8 @@ describe('API Console request', () => { beforeEach(async () => { await navigationSelectEndpointMethod(element, '/test-basic-scheme', 'get'); - await aTimeout(50); // @ts-ignore - documentationTryItButton(element).click(); + (await documentationTryItButton(element)).click(); await aTimeout(50); credentialsSection = requestCredentialsSection(element); }); @@ -387,9 +380,8 @@ describe('API Console request', () => { beforeEach(async () => { await navigationSelectEndpointMethod(element, '/test-digest-scheme', 'get'); - await aTimeout(100); // @ts-ignore - documentationTryItButton(element).click(); + (await documentationTryItButton(element)).click(); await aTimeout(50); credentialsSection = requestCredentialsSection(element); }); @@ -468,9 +460,8 @@ describe('API Console request', () => { beforeEach(async () => { await navigationSelectEndpointMethod(element, '/test-pass-through-scheme', 'get'); - await aTimeout(100); // @ts-ignore - documentationTryItButton(element).click(); + (await documentationTryItButton(element)).click(); await aTimeout(50); credentialsSection = requestCredentialsSection(element); }); @@ -489,7 +480,8 @@ describe('API Console request', () => { assert.equal(authorizationMethod.getAttribute('type'), 'pass through'); }); - it('should render scheme fields', () => { + it('should render scheme fields', async () => { + await waitUntil(() => Boolean(credentialsSection.shadowRoot.querySelector('api-authorization-method'))); const authorizationMethod = credentialsSection.shadowRoot.querySelector('api-authorization-method'); assert.equal(authorizationMethod.shadowRoot.querySelector('.subtitle').innerText.trim(), 'Scheme: passthrough'); assert.exists(authorizationMethod.shadowRoot.querySelector('.hint-icon')); @@ -539,9 +531,8 @@ describe('API Console request', () => { describe('Required parameters', () => { beforeEach(async () => { await navigationSelectEndpointMethod(element, '/test-query-parameters', 'post'); - await aTimeout(50); // @ts-ignore - documentationTryItButton(element).click(); + (await documentationTryItButton(element)).click(); await aTimeout(50); requestPanel(element).allowHideOptional = true; await aTimeout(50); @@ -608,9 +599,8 @@ describe('API Console request', () => { describe('Optional parameters', () => { beforeEach(async () => { await navigationSelectEndpointMethod(element, '/test-query-parameters', 'put'); - await aTimeout(50); // @ts-ignore - documentationTryItButton(element).click(); + (await documentationTryItButton(element)).click(); await aTimeout(50); requestPanel(element).allowHideOptional = true; await aTimeout(50); @@ -659,9 +649,8 @@ describe('API Console request', () => { describe('allowHideOptional disabled', () => { beforeEach(async () => { await navigationSelectEndpointMethod(element, '/test-query-parameters', 'put'); - await aTimeout(50); // @ts-ignore - documentationTryItButton(element).click(); + (await documentationTryItButton(element)).click(); await aTimeout(50); }); @@ -674,9 +663,8 @@ describe('API Console request', () => { describe('No parameters', () => { beforeEach(async () => { await navigationSelectEndpointMethod(element, '/test-custom-scheme', 'get'); - await aTimeout(50); // @ts-ignore - documentationTryItButton(element).click(); + (await documentationTryItButton(element)).click(); await aTimeout(50); }); diff --git a/test/api-console.amf.test.js b/test/api-console.amf.test.js index dff38f188..ec65afd89 100644 --- a/test/api-console.amf.test.js +++ b/test/api-console.amf.test.js @@ -104,6 +104,7 @@ describe('ApiConsole', () => { await nextFrame(); const apiDocumentation = element.shadowRoot.querySelector('api-documentation'); const apiSummary = apiDocumentation.shadowRoot.querySelector('api-summary'); + await waitUntil(() => Boolean(apiSummary.shadowRoot.querySelector('api-url'))); const apiUrl = apiSummary.shadowRoot.querySelector('api-url'); assert.notExists(apiUrl.shadowRoot.querySelector('.method-label')); assert.notExists(apiUrl.shadowRoot.querySelector('.method-value')); diff --git a/test/testHelper.js b/test/testHelper.js index 07f22c422..8fba79b2a 100644 --- a/test/testHelper.js +++ b/test/testHelper.js @@ -1,4 +1,4 @@ -import { nextFrame } from '@open-wc/testing'; +import { nextFrame, waitUntil } from '@open-wc/testing'; /** @typedef {import('@api-components/api-navigation').ApiNavigation} ApiNavigation */ @@ -167,8 +167,10 @@ export const documentationMethod = (element) => { return documentation.shadowRoot.querySelector('api-method-documentation'); }; -export const documentationTryItButton = (element) => { +export const documentationTryItButton = async (element) => { + await waitUntil(() => Boolean(documentationPanel(element))); const documentation = documentationPanel(element); + await waitUntil(() => Boolean(documentation.shadowRoot.querySelector('api-method-documentation'))); const methodDocumentation = documentation.shadowRoot.querySelector('api-method-documentation'); return methodDocumentation.shadowRoot.querySelector('.action-button'); };