UIBULKED-568 Populating Are you sure? form #3483
5 fail, 302 pass in 3m 13s
Annotations
Check warning on line 0 in useConfirmChanges should call downloadFile from useFileDownload
github-actions / Jest Unit Test Results
useConfirmChanges should call downloadFile from useFileDownload (useConfirmChanges should call downloadFile from useFileDownload) failed
artifacts/jest-junit/junit.xml
Raw output
TypeError: result.current.downloadFile is not a function
at /home/runner/work/ui-bulk-edit/ui-bulk-edit/src/hooks/useConfirmChanges.test.js:140:22
at act (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/react/cjs/react.development.js:2512:16)
at actWithWarning (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1740:10)
at Object.<anonymous> (/home/runner/work/ui-bulk-edit/ui-bulk-edit/src/hooks/useConfirmChanges.test.js:139:8)
at Object.asyncJestTest (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:45:12
at new Promise (<anonymous>)
at mapper (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:75:41
Check warning on line 0 in BulkEditInAppPreviewModal should call all footer handlers
github-actions / Jest Unit Test Results
BulkEditInAppPreviewModal should call all footer handlers (BulkEditInAppPreviewModal should call all footer handlers) failed
artifacts/jest-junit/junit.xml
Raw output
TestingLibraryElementError: Unable to find an element with the text: ui-bulk-edit.previewModal.keepEditing. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
<body>
<div>
<div />
</div>
<div
class="backdrop"
/>
<div
aria-label="PreviewModal"
class="modalRoot entering"
role="dialog"
tabindex="-1"
>
<div
aria-label="PreviewModal"
class="modal large"
label="[object Object]"
>
<div
class="modalHeader"
>
<h1
class="headline size-small margin-none font-weight-bold modalLabel"
data-test-headline="true"
id="modal1-label"
>
ui-bulk-edit.previewModal.areYouSure
</h1>
<div
class="modalControls"
>
<button
aria-label="stripes-components.dismissModal"
class="iconButton medium closeModal"
icon="times"
type="button"
>
<span
class="iconButtonInner mediumOffset"
>
<span>
Icon
</span>
</span>
</button>
</div>
</div>
<div
class="modalContent"
>
<div
aria-live="assertive"
class="root"
role="alert"
>
<div
class="inner type-warning"
data-test-message-banner="true"
>
<span>
Icon
</span>
<div
class="content"
>
ui-bulk-edit.previewModal.message
</div>
</div>
</div>
<strong
class="previewModalSubtitle"
>
ui-bulk-edit.previewModal.previewToBeChanged
</strong>
<table>
<thead>
<tr />
</thead>
<tbody />
</table>
</div>
</div>
</div>
</body>
at Object.getElementError (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/config.js:37:19)
at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:90:38
at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:62:17
at getByText (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:111:19)
at Object.<anonymous> (/home/runner/work/ui-bulk-edit/ui-bulk-edit/src/components/BulkEditPane/BulkEditListResult/BulkEditInAppPreviewModal/BulkEditInAppPreviewModal.test.js:98:28)
at Object.asyncJestTest (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:45:12
at new Promise (<anonymous>)
at mapper (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:75:41
at processTicksAndRejections (node:internal/process/task_queues:95:5)
github-actions / Jest Unit Test Results
BulkEditInAppPreviewModal should call all footer handlers without fileName (BulkEditInAppPreviewModal should call all footer handlers without fileName) failed
artifacts/jest-junit/junit.xml
Raw output
TestingLibraryElementError: Unable to find an element with the text: ui-bulk-edit.previewModal.downloadPreview. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
<body>
<div>
<div />
</div>
<div
class="backdrop"
/>
<div
aria-label="PreviewModal"
class="modalRoot entering"
role="dialog"
tabindex="-1"
>
<div
aria-label="PreviewModal"
class="modal large"
label="[object Object]"
>
<div
class="modalHeader"
>
<h1
class="headline size-small margin-none font-weight-bold modalLabel"
data-test-headline="true"
id="modal2-label"
>
ui-bulk-edit.previewModal.areYouSure
</h1>
<div
class="modalControls"
>
<button
aria-label="stripes-components.dismissModal"
class="iconButton medium closeModal"
icon="times"
type="button"
>
<span
class="iconButtonInner mediumOffset"
>
<span>
Icon
</span>
</span>
</button>
</div>
</div>
<div
class="modalContent"
>
<div
aria-live="assertive"
class="root"
role="alert"
>
<div
class="inner type-warning"
data-test-message-banner="true"
>
<span>
Icon
</span>
<div
class="content"
>
ui-bulk-edit.previewModal.message
</div>
</div>
</div>
<strong
class="previewModalSubtitle"
>
ui-bulk-edit.previewModal.previewToBeChanged
</strong>
<table>
<thead>
<tr />
</thead>
<tbody />
</table>
</div>
</div>
</div>
</body>
at Object.getElementError (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/config.js:37:19)
at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:90:38
at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:62:17
at getByText (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:111:19)
at Object.<anonymous> (/home/runner/work/ui-bulk-edit/ui-bulk-edit/src/components/BulkEditPane/BulkEditListResult/BulkEditInAppPreviewModal/BulkEditInAppPreviewModal.test.js:105:28)
at Object.asyncJestTest (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:45:12
at new Promise (<anonymous>)
at mapper (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:75:41
at processTicksAndRejections (node:internal/process/task_queues:95:5)
github-actions / Jest Unit Test Results
files savePreviewFile should save the file with the correct name and extension for MARC approach (files savePreviewFile should save the file with the correct name and extension for MARC approach) failed
artifacts/jest-junit/junit.xml
Raw output
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
{},
- "2024-08-09-Updates-Preview-abc.mrc",
+ "2024-08-09-Updates-Preview-abc.csv",
Number of calls: 1
at Object.<anonymous> (/home/runner/work/ui-bulk-edit/ui-bulk-edit/src/utils/files.test.js:72:22)
at Object.asyncJestTest (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:45:12
at new Promise (<anonymous>)
at mapper (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:75:41
at processTicksAndRejections (node:internal/process/task_queues:95:5)
github-actions / Jest Unit Test Results
files savePreviewFile should save the file with default name if initialFileName is empty (files savePreviewFile should save the file with default name if initialFileName is empty) failed
artifacts/jest-junit/junit.xml
Raw output
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
{},
- "2024-08-09-Updates-Preview-Query-123.mrc",
+ "2024-08-09-Updates-Preview-Query-123.undefined",
Number of calls: 1
at Object.<anonymous> (/home/runner/work/ui-bulk-edit/ui-bulk-edit/src/utils/files.test.js:114:22)
at Object.asyncJestTest (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:106:37)
at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:45:12
at new Promise (<anonymous>)
at mapper (/home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:28:19)
at /home/runner/work/ui-bulk-edit/ui-bulk-edit/node_modules/jest-jasmine2/build/queueRunner.js:75:41
at processTicksAndRejections (node:internal/process/task_queues:95:5)