feat: use 'display name' for the metadata labels on the reviewp. #2116
website-tests.yml
on: pull_request
Check format and types
1m 37s
Unit Tests
41s
Annotations
9 errors
Unhandled error:
website/src/components/ReviewPage/ReviewCard.tsx#L191
TypeError: Cannot read properties of undefined (reading 'get')
❯ src/components/ReviewPage/ReviewCard.tsx:191:47
❯ MetadataList src/components/ReviewPage/ReviewCard.tsx:186:49
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626: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
❯ HTMLUnknownElement.dispatchEvent node_modules/happy-dom/src/nodes/element/Element.ts:1252:29
This error originated in "src/components/ReviewPage/ReviewPage.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 render the review page and show button to bulk delete/approve all erroneous sequences". 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/ReviewPage/ReviewCard.tsx#L191
TypeError: Cannot read properties of undefined (reading 'get')
❯ src/components/ReviewPage/ReviewCard.tsx:191:47
❯ MetadataList src/components/ReviewPage/ReviewCard.tsx:186:49
❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626: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
❯ HTMLUnknownElement.dispatchEvent node_modules/happy-dom/src/nodes/element/Element.ts:1252:29
This error originated in "src/components/ReviewPage/ReviewPage.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 render the review page and show how many sequences are processed". 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/ReviewPage/ReviewPage.spec.tsx > ReviewPage > should render the review page and show button to bulk delete/approve all erroneous sequences:
website/src/components/ReviewPage/ReviewPage.spec.tsx#L175
TestingLibraryElementError: Unable to find an element with the text: Discard sequences. 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.
Ignored nodes: comments, script, style
<body>
<div />
</body>
❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19
❯ node_modules/@testing-library/dom/dist/query-helpers.js:76: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/ReviewPage/ReviewPage.spec.tsx:175:9
|
src/components/ReviewPage/ReviewPage.spec.tsx > ReviewPage > should render the review page and show how many sequences are processed:
website/src/components/ReviewPage/ReviewPage.spec.tsx#L209
TestingLibraryElementError: Unable to find an element with the text: (text) => text.includes("2 of 4 sequences processed"). 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.
Ignored nodes: comments, script, style
<body>
<div />
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>...
❯ Proxy.waitForWrapper node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/components/ReviewPage/ReviewPage.spec.tsx:209:15
|
Unit Tests
Process completed with exit code 1.
|
Check format and types:
website/src/components/ReviewPage/ReviewCard.tsx#L191
Unexpected nullable string value in conditional. Please handle the nullish/empty cases explicitly
|
Check format and types:
website/src/config.ts#L36
Unexpected nullable string value in conditional. Please handle the nullish/empty cases explicitly
|
Check format and types
Process completed with exit code 1.
|
Check format and types
Process completed with exit code 1.
|