-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ui-core] Upgrade all jest related libraries
This upgrades all the jest testing libraries to the latest possible versions. The primary reason was to provide a fix for CVE-2023-48631, a vulnerability with @adobe/css-tools which is a transient dependency of jest-jsdom. - Updated snapshots due to improved format - Moved console.log of editor v2 up to the app.js as it appears in the tests - jest config updated for deprecated configs Manual testing and unit test runs.
- Loading branch information
1 parent
1826fef
commit cc70d32
Showing
47 changed files
with
3,041 additions
and
1,652 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
desktop/core/src/desktop/js/apps/editor/components/__snapshots__/ko.paginator.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...top/core/src/desktop/js/apps/editor/components/__snapshots__/ko.savedQueries.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
desktop/core/src/desktop/js/components/__snapshots__/Modal.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,9 @@ exports[`Tab.vue should render 1`] = ` | |
style="display: none;" | ||
> | ||
<stub /> | ||
<div> | ||
Some tab content | ||
</div> | ||
</div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
desktop/core/src/desktop/js/ko/bindings/__snapshots__/ko.stickVertical.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ko.stickVertical.js should render binding 1`] = ` | ||
"<div class=\\"scroll-container\\"> | ||
<div data-bind=\\"scrollVertical: { scrollContainer: '.scroll-container' }\\"></div> | ||
"<div class="scroll-container"> | ||
<div data-bind="scrollVertical: { scrollContainer: '.scroll-container' }"></div> | ||
</div>" | ||
`; |
2 changes: 1 addition & 1 deletion
2
desktop/core/src/desktop/js/ko/bindings/__snapshots__/ko.templateContextMenu.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ko.templateContextMenu.js should render binding 1`] = `"<div data-bind=\\"templateContextMenu: { }\\"></div>"`; | ||
exports[`ko.templateContextMenu.js should render binding 1`] = `"<div data-bind="templateContextMenu: { }"></div>"`; |
2 changes: 1 addition & 1 deletion
2
desktop/core/src/desktop/js/ko/bindings/__snapshots__/ko.templatePopover.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ko.templatePopover.js should render binding 1`] = `"<div id=\\"popoverTest\\" data-bind=\\"templatePopover: { trigger: 'click' }\\"></div>"`; | ||
exports[`ko.templatePopover.js should render binding 1`] = `"<div id="popoverTest" data-bind="templatePopover: { trigger: 'click' }"></div>"`; |
2 changes: 1 addition & 1 deletion
2
desktop/core/src/desktop/js/ko/bindings/__snapshots__/ko.toggleOverflow.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ko.toggleOverflow.js should render binding 1`] = `"<div data-bind=\\"toggleOverflow\\"><div class=\\"toggle-overflow\\">Some text</div><div class=\\"toggle-overflow-toggle\\"><i class=\\"fa fa-caret-down muted\\"></i></div></div>"`; | ||
exports[`ko.toggleOverflow.js should render binding 1`] = `"<div data-bind="toggleOverflow"><div class="toggle-overflow">Some text</div><div class="toggle-overflow-toggle"><i class="fa fa-caret-down muted"></i></div></div>"`; |
2 changes: 1 addition & 1 deletion
2
desktop/core/src/desktop/js/ko/bindings/__snapshots__/ko.toogle.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ko.toggle.js should render binding 1`] = `"<div class=\\"toggle-test\\" data-bind=\\"toggle: testObservable\\"></div>"`; | ||
exports[`ko.toggle.js should render binding 1`] = `"<div class="toggle-test" data-bind="toggle: testObservable"></div>"`; |
2 changes: 1 addition & 1 deletion
2
desktop/core/src/desktop/js/ko/bindings/__snapshots__/ko.tooltip.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ko.tooltip.js should render binding 1`] = `"<div data-bind=\\"tooltip\\" data-original-title=\\"some title\\"></div>"`; | ||
exports[`ko.tooltip.js should render binding 1`] = `"<div data-bind="tooltip" data-original-title="some title"></div>"`; |
2 changes: 1 addition & 1 deletion
2
desktop/core/src/desktop/js/ko/bindings/__snapshots__/ko.truncatedText.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ko.truncatedText.js should render binding 1`] = `"<div data-bind=\\"truncatedText: text\\">More than 20 charact...</div>"`; | ||
exports[`ko.truncatedText.js should render binding 1`] = `"<div data-bind="truncatedText: text">More than 20 charact...</div>"`; |
2 changes: 1 addition & 1 deletion
2
desktop/core/src/desktop/js/ko/bindings/__snapshots__/ko.verticalSlide.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ko.verticalSlide.js should render binding 1`] = `"<div data-bind=\\"verticalSlide: slide\\" style=\\"display: none;\\"></div>"`; | ||
exports[`ko.verticalSlide.js should render binding 1`] = `"<div data-bind="verticalSlide: slide" style="display: none;"></div>"`; |
2 changes: 1 addition & 1 deletion
2
desktop/core/src/desktop/js/ko/bindings/__snapshots__/ko.visibleOnHover.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ko.visibleOnHover.js should render binding 1`] = `"<div id=\\"foo\\" data-bind=\\"visibleOnHover: { selector: '#foo' }\\"></div>"`; | ||
exports[`ko.visibleOnHover.js should render binding 1`] = `"<div id="foo" data-bind="visibleOnHover: { selector: '#foo' }"></div>"`; |
2 changes: 1 addition & 1 deletion
2
desktop/core/src/desktop/js/ko/components/__snapshots__/ko.contextSelector.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions
22
desktop/core/src/desktop/js/ko/components/__snapshots__/ko.createDirectoryModal.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ko.createDirectoryModal.js should render component 1`] = ` | ||
"<html><head></head><body class=\\"modal-open\\"><div id=\\"createDirectoryModal\\" data-bind=\\"descendantsComplete: descendantsComplete, component: { name: 'create-directory', params: params }\\" data-keyboard=\\"true\\" class=\\"modal hide fade in\\" tabindex=\\"-1\\" aria-hidden=\\"false\\"> | ||
"<html><head></head><body class="modal-open"><div id="createDirectoryModal" data-bind="descendantsComplete: descendantsComplete, component: { name: 'create-directory', params: params }" data-keyboard="true" class="modal hide fade in" tabindex="-1" aria-hidden="false"> | ||
<!-- ko with: activeEntry --> | ||
<form class=\\"form-horizontal\\"> | ||
<div class=\\"modal-header\\"> | ||
<button type=\\"button\\" class=\\"close\\" data-dismiss=\\"modal\\" aria-label=\\"Close\\"><span aria-hidden=\\"true\\">×</span></button> | ||
<h2 class=\\"modal-title\\">Create Directory</h2> | ||
<form class="form-horizontal"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | ||
<h2 class="modal-title">Create Directory</h2> | ||
</div> | ||
<div class=\\"modal-body \\"> | ||
<input id=\\"newDirectoryName\\" class=\\"input large-as-modal\\" type=\\"text\\" placeholder=\\"Directory name\\"> | ||
<div class="modal-body "> | ||
<input id="newDirectoryName" class="input large-as-modal" type="text" placeholder="Directory name"> | ||
</div> | ||
<div class=\\"modal-footer\\"> | ||
<input type=\\"button\\" class=\\"btn\\" data-dismiss=\\"modal\\" data-bind=\\"click: function () { $('#newDirectoryName').val(null) }\\" value=\\"Cancel\\"> | ||
<input type=\\"submit\\" class=\\"btn btn-primary disable-feedback\\" value=\\"Create\\" data-bind=\\"click: function () { if ($('#newDirectoryName').val()) { $data.createDirectory($('#newDirectoryName').val()); $('#createDirectoryModal').modal('hide'); } }\\"> | ||
<div class="modal-footer"> | ||
<input type="button" class="btn" data-dismiss="modal" data-bind="click: function () { $('#newDirectoryName').val(null) }" value="Cancel"> | ||
<input type="submit" class="btn btn-primary disable-feedback" value="Create" data-bind="click: function () { if ($('#newDirectoryName').val()) { $data.createDirectory($('#newDirectoryName').val()); $('#createDirectoryModal').modal('hide'); } }"> | ||
</div> | ||
</form> | ||
<!-- /ko --> | ||
</div><div class=\\"modal-backdrop fade in\\"></div></body></html>" | ||
</div><div class="modal-backdrop fade in"></div></body></html>" | ||
`; |
24 changes: 12 additions & 12 deletions
24
desktop/core/src/desktop/js/ko/components/__snapshots__/ko.deleteDocModal.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ko.deleteDocModal.js should render component 1`] = ` | ||
"<html><head></head><body class=\\"modal-open\\"><div id=\\"deleteEntriesModal\\" data-bind=\\"descendantsComplete: descendantsComplete, component: { name: 'delete-entry', params: params }\\" data-keyboard=\\"true\\" class=\\"modal hide fade in\\" tabindex=\\"-1\\" aria-hidden=\\"false\\"> | ||
<div class=\\"modal-header\\"> | ||
<button type=\\"button\\" class=\\"close\\" data-dismiss=\\"modal\\" aria-label=\\"Close\\"><span aria-hidden=\\"true\\">×</span></button> | ||
"<html><head></head><body class="modal-open"><div id="deleteEntriesModal" data-bind="descendantsComplete: descendantsComplete, component: { name: 'delete-entry', params: params }" data-keyboard="true" class="modal hide fade in" tabindex="-1" aria-hidden="false"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | ||
<!-- ko if: entriesToDelete().length === 0 --><!-- /ko --> | ||
<!-- ko if: entriesToDelete().length > 0 --> | ||
<h2 class=\\"modal-title\\"> Do you really want to delete the following document(s)? </h2> | ||
<h2 class="modal-title"> Do you really want to delete the following document(s)? </h2> | ||
<!-- /ko --> | ||
</div> | ||
<div class=\\"modal-body\\"> | ||
<div class=\\"doc-browser-empty animated\\" style=\\"\\" data-bind=\\"visible: entriesToDelete().length > 0 && selectedDocsWithDependents().length === 0\\"> | ||
<i class=\\"fa fa-spinner fa-spin fa-2x\\"></i> | ||
<div class="modal-body"> | ||
<div class="doc-browser-empty animated" style="" data-bind="visible: entriesToDelete().length > 0 && selectedDocsWithDependents().length === 0"> | ||
<i class="fa fa-spinner fa-spin fa-2x"></i> | ||
</div> | ||
<ul data-bind=\\"foreach: selectedDocsWithDependents()\\"></ul> | ||
<ul data-bind="foreach: selectedDocsWithDependents()"></ul> | ||
</div> | ||
<div class=\\"modal-footer\\"> | ||
<div class="modal-footer"> | ||
<!-- ko if: entriesToDelete().length === 0 --><!-- /ko --> | ||
<!-- ko if: entriesToDelete().length > 0 --> | ||
<input type=\\"button\\" class=\\"btn\\" data-dismiss=\\"modal\\" value=\\"Cancel\\"> | ||
<input type=\\"submit\\" data-bind=\\"click: function() { if (isTrash() || isTrashed()) { removeDocuments(true) } else { moveToTrash() } }, disable: deletingEntries\\" class=\\"btn btn-danger disable-feedback\\" value=\\"Yes\\"> | ||
<input type="button" class="btn" data-dismiss="modal" value="Cancel"> | ||
<input type="submit" data-bind="click: function() { if (isTrash() || isTrashed()) { removeDocuments(true) } else { moveToTrash() } }, disable: deletingEntries" class="btn btn-danger disable-feedback" value="Yes"> | ||
<!-- /ko --> | ||
</div> | ||
</div><div class=\\"modal-backdrop fade in\\"></div></body></html>" | ||
</div><div class="modal-backdrop fade in"></div></body></html>" | ||
`; |
Oops, something went wrong.