Skip to content

feat(website): Column remapping when submitting metadata files #2655

feat(website): Column remapping when submitting metadata files

feat(website): Column remapping when submitting metadata files #2655

Triggered via pull request December 31, 2024 18:10
Status Failure
Total duration 1m 48s
Artifacts

website-tests.yml

on: pull_request
Check format and types
1m 36s
Check format and types
Unit Tests
48s
Unit Tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Unhandled error: website/src/components/Submission/FileUpload/ColumnMappingModal.tsx#L50
TypeError: this.displayNames.get is not a function ❯ src/components/Submission/FileUpload/ColumnMappingModal.tsx:50:31 ❯ ColumnMapping.entries src/components/Submission/FileUpload/ColumnMappingModal.tsx:48:47 ❯ ColumnMappingModal src/components/Submission/FileUpload/ColumnMappingModal.tsx:147:49 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21640:16 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:4164:14 ❯ HTMLUnknownElement.#callDispatchEventListeners node_modules/happy-dom/src/event/EventTarget.ts:286:41 ❯ HTMLUnknownElement.dispatchEvent node_modules/happy-dom/src/event/EventTarget.ts:121:35 This error originated in "src/components/Submission/SubmissionForm.spec.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should handle file upload and server response". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: website/src/components/Submission/FileUpload/ColumnMappingModal.tsx#L50
TypeError: this.displayNames.get is not a function ❯ src/components/Submission/FileUpload/ColumnMappingModal.tsx:50:31 ❯ ColumnMapping.entries src/components/Submission/FileUpload/ColumnMappingModal.tsx:48:47 ❯ ColumnMappingModal src/components/Submission/FileUpload/ColumnMappingModal.tsx:147:49 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21640:16 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:4164:14 ❯ HTMLUnknownElement.#callDispatchEventListeners node_modules/happy-dom/src/event/EventTarget.ts:286:41 ❯ HTMLUnknownElement.dispatchEvent node_modules/happy-dom/src/event/EventTarget.ts:121:35 This error originated in "src/components/Submission/SubmissionForm.spec.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should answer with feedback that a file is missing". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: website/src/components/Submission/FileUpload/ColumnMappingModal.tsx#L50
TypeError: this.displayNames.get is not a function ❯ src/components/Submission/FileUpload/ColumnMappingModal.tsx:50:31 ❯ ColumnMapping.entries src/components/Submission/FileUpload/ColumnMappingModal.tsx:48:47 ❯ ColumnMappingModal src/components/Submission/FileUpload/ColumnMappingModal.tsx:147:49 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21640:16 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:4164:14 ❯ HTMLUnknownElement.#callDispatchEventListeners node_modules/happy-dom/src/event/EventTarget.ts:286:41 ❯ HTMLUnknownElement.dispatchEvent node_modules/happy-dom/src/event/EventTarget.ts:121:35 This error originated in "src/components/Submission/SubmissionForm.spec.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should unexpected error with proper error message". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: website/src/components/Submission/FileUpload/ColumnMappingModal.tsx#L50
TypeError: this.displayNames.get is not a function ❯ src/components/Submission/FileUpload/ColumnMappingModal.tsx:50:31 ❯ ColumnMapping.entries src/components/Submission/FileUpload/ColumnMappingModal.tsx:48:47 ❯ ColumnMappingModal src/components/Submission/FileUpload/ColumnMappingModal.tsx:147:49 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ updateFunctionComponent node_modules/react-dom/cjs/react-dom.development.js:19617:20 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21640:16 ❯ HTMLUnknownElement.callCallback node_modules/react-dom/cjs/react-dom.development.js:4164:14 ❯ HTMLUnknownElement.#callDispatchEventListeners node_modules/happy-dom/src/event/EventTarget.ts:286:41 ❯ HTMLUnknownElement.dispatchEvent node_modules/happy-dom/src/event/EventTarget.ts:121:35 This error originated in "src/components/Submission/SubmissionForm.spec.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "should handle unprocessable entity error with proper error message". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
src/components/Submission/SubmissionForm.spec.tsx > SubmitForm > should handle file upload and server response: website/src/components/Submission/SubmissionForm.spec.tsx#L80
TestingLibraryElementError: Unable to find a label with the text of: /Sequence File/i Ignored nodes: comments, script, style <body> <div /> </body> ❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19 ❯ getAllByLabelText node_modules/@testing-library/dom/dist/queries/label-text.js:111:38 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ src/components/Submission/SubmissionForm.spec.tsx:80:32
src/components/Submission/SubmissionForm.spec.tsx > SubmitForm > should answer with feedback that a file is missing: website/src/components/Submission/SubmissionForm.spec.tsx#L94
TestingLibraryElementError: Unable to find a label with the text of: /I confirm I have not and will not submit this data independently to INSDC/i Ignored nodes: comments, script, style <body> <div /> </body> ❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19 ❯ getAllByLabelText node_modules/@testing-library/dom/dist/queries/label-text.js:111:38 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ src/components/Submission/SubmissionForm.spec.tsx:94:13
src/components/Submission/SubmissionForm.spec.tsx > SubmitForm > should unexpected error with proper error message: website/src/components/Submission/SubmissionForm.spec.tsx#L166
TestingLibraryElementError: Unable to find a label with the text of: /Sequence file/i Ignored nodes: comments, script, style <body> <div /> </body> ❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19 ❯ getAllByLabelText node_modules/@testing-library/dom/dist/queries/label-text.js:111:38 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ submitAndExpectErrorMessageContains src/components/Submission/SubmissionForm.spec.tsx:166:32 ❯ src/components/Submission/SubmissionForm.spec.tsx:125:9
src/components/Submission/SubmissionForm.spec.tsx > SubmitForm > should handle unprocessable entity error with proper error message: website/src/components/Submission/SubmissionForm.spec.tsx#L166
TestingLibraryElementError: Unable to find a label with the text of: /Sequence file/i Ignored nodes: comments, script, style <body> <div /> </body> ❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19 ❯ getAllByLabelText node_modules/@testing-library/dom/dist/queries/label-text.js:111:38 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17 ❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ submitAndExpectErrorMessageContains src/components/Submission/SubmissionForm.spec.tsx:166:32 ❯ src/components/Submission/SubmissionForm.spec.tsx:140:9
Unit Tests
Process completed with exit code 1.
Check format and types
Process completed with exit code 1.
Unit Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Check format and types
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636