Added a checkbox for re-categorisation of HSM template categories #4269
Annotations
10 errors and 2 warnings
Unhandled error:
src/containers/Template/Form/Template.tsx#L900
TypeError: Cannot read properties of undefined (reading 'slice')
❯ Template src/containers/Template/Form/Template.tsx:900:5
❯ 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
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performSyncWorkOnRoot node_modules/react-dom/cjs/react-dom.development.js:26135:20
This error originated in "src/containers/Template/Form/Template.test.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 "Template form is loaded correctly in edit mode". 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:
src/containers/Template/Form/Template.tsx#L900
TypeError: Cannot read properties of undefined (reading 'slice')
❯ Template src/containers/Template/Form/Template.tsx:900:5
❯ 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
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performSyncWorkOnRoot node_modules/react-dom/cjs/react-dom.development.js:26135:20
This error originated in "src/containers/Template/Form/Template.test.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 "save media in template". 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:
src/containers/Template/Form/Template.tsx#L900
TypeError: Cannot read properties of undefined (reading 'slice')
❯ Template src/containers/Template/Form/Template.tsx:900:5
❯ 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
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performSyncWorkOnRoot node_modules/react-dom/cjs/react-dom.development.js:26135:20
This error originated in "src/containers/Template/Form/SpeedSend/SpeedSend.test.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 "cancel button should redirect to SpeedSendlist page". 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:
src/containers/Template/Form/Template.tsx#L900
TypeError: Cannot read properties of undefined (reading 'slice')
❯ Template src/containers/Template/Form/Template.tsx:900:5
❯ 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
❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7
❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
❯ performSyncWorkOnRoot node_modules/react-dom/cjs/react-dom.development.js:26135:20
This error originated in "src/containers/Template/Form/SpeedSend/SpeedSend.test.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 have correct validations ". 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/containers/Template/Form/Template.test.tsx > speed sends > Template form is loaded correctly in edit mode:
src/containers/Template/Form/Template.test.tsx#L37
TestingLibraryElementError: Unable to find an element with the text: Edit Speed sends. 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/containers/Template/Form/Template.test.tsx:37:11
|
src/containers/Template/Form/Template.test.tsx > speed sends > save media in template:
src/containers/Template/Form/Template.test.tsx#L56
TestingLibraryElementError: Unable to find an element by: [data-testid="getMedia"]
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/containers/Template/Form/Template.test.tsx:56:11
|
src/containers/Template/Form/Template.test.tsx > hsm templates in edit mode > Template is loaded with correct buttons:
src/containers/Template/Form/Template.test.tsx#L106
TestingLibraryElementError: Unable to find an accessible element with the role "radio"
Here are the accessible roles:
checkbox:
Name "Active?":
<input
checked=""
class="PrivateSwitchBase-input css-1m9pwf3"
data-indeterminate="false"
name="isActive"
type="checkbox"
value="true"
/>
Name "Add buttons":
<input
class="PrivateSwitchBase-input css-1m9pwf3"
data-indeterminate="false"
disabled=""
name="isAddButtonChecked"
type="checkbox"
value="false"
/>
--------------------------------------------------
heading:
Name "Active?":
<h6
class="MuiTypography-root MuiTypography-h6 _IsActive_e2fed9 css-2ulfj5-MuiTypography-root"
/>
Name "Language*":
<h5
class="MuiTypography-root MuiTypography-h5 _FieldLabel_787cd5 css-ag7rrr-MuiTypography-root"
data-testid="formLabel"
/>
Name "Title":
<h5
class="MuiTypography-root MuiTypography-h5 _FieldLabel_787cd5 css-ag7rrr-MuiTypography-root"
data-testid="formLabel"
/>
Name "Message":
<h5
class="MuiTypography-root MuiTypography-h5 _FieldLabel_787cd5 css-ag7rrr-MuiTypography-root"
data-testid="formLabel"
/>
Name "Sample message*":
<h5
class="MuiTypography-root MuiTypography-h5 _FieldLabel_787cd5 css-ag7rrr-MuiTypography-root"
data-testid="formLabel"
/>
Name "Add buttons":
<h6
class="MuiTypography-root MuiTypography-h6 _IsActive_e2fed9 css-2ulfj5-MuiTypography-root"
/>
Name "Category*":
<h5
class="MuiTypography-root MuiTypography-h5 _FieldLabel_787cd5 css-ag7rrr-MuiTypography-root"
data-testid="formLabel"
/>
Name "Element name*":
<h5
class="MuiTypography-root MuiTypography-h5 _FieldLabel_787cd5 css-ag7rrr-MuiTypography-root"
data-testid="formLabel"
/>
Name "Attachment Type":
<h5
class="MuiTypography-root MuiTypography-h5 _FieldLabel_787cd5 css-ag7rrr-MuiTypography-root"
data-testid="formLabel"
/>
Name "Attachment URL":
<h5
class="MuiTypography-root MuiTypography-h5 _FieldLabel_787cd5 css-ag7rrr-MuiTypography-root"
data-testid="formLabel"
/>
Name "Tag":
<h5
class="MuiTypography-root MuiTypography-h5 _FieldLabel_787cd5 css-ag7rrr-MuiTypography-root"
data-testid="formLabel"
/>
--------------------------------------------------
combobox:
Name "":
<input
aria-autocomplete="list"
aria-expanded="false"
aria-invalid="false"
autocapitalize="none"
autocomplete="off"
class="MuiInputBase-input MuiOutlinedInput-input Mui-disabled MuiInputBase-inputAdornedEnd MuiAutocomplete-input MuiAutocomplete-inputFocused css-nxo287-MuiInputBase-input-MuiOutlinedInput-input"
disabled=""
id=":r8:"
placeholder=""
role="combobox"
spellcheck="false"
type="text"
value=""
/>
Name "":
<input
aria-autocomplete="list"
aria-expanded="false"
aria-invalid="false"
autocapitalize="none"
autocomplete="off"
class="MuiInputBase-input MuiOutlinedInput-input Mui-disabled MuiInputBase-inputAdornedEnd MuiAutocomplete-input MuiAutocomplete-inputFocused css-nxo287-MuiInputBase-input-MuiOutlinedInput-input"
disabled=""
id=":ra:"
placeholder=""
role="combobox"
spellcheck="false"
type="text"
value=""
/>
Name "":
<input
aria-autocomplete="list"
aria-expanded="false"
aria-invalid="false"
autocapitalize="none"
autocomplete="off"
class="MuiInputBase-input MuiOutlinedInput-input Mui-disabled MuiInputBase-inputAdornedEnd MuiAutocomplete-input MuiAutocomplete-inputFocused css-nxo287-MuiInputBase-input-MuiOutlinedInput-input"
disabled=""
id=":rc:"
placeholder=""
role="combobox"
spellcheck="false"
type="text"
value=""
/>
--------------------------------------------------
button:
Name "Open":
<button
aria-label="Open"
class="MuiButtonBase-root Mui-disabled MuiIconButton-root Mui-disabled MuiIconButton-sizeMedium MuiAutocomplete-popupIndicator css-qzbt6i-MuiButtonBase-root-MuiIconButton-root-MuiAutocomplete-popupIndicator"
disabled=""
t
|
src/containers/Template/Form/SpeedSend/SpeedSend.test.tsx > SpeedSend > cancel button should redirect to SpeedSendlist page:
src/containers/Template/Form/SpeedSend/SpeedSend.test.tsx#L40
TypeError: Expected container to be an Element, a Document or a DocumentFragment but got null.
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>...
❯ checkContainerType node_modules/@testing-library/dom/dist/helpers.js:61:11
❯ queryAllByText node_modules/@testing-library/dom/dist/queries/text.js:18:35
❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/containers/Template/Form/SpeedSend/SpeedSend.test.tsx:40:22
❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
src/containers/Template/Form/SpeedSend/SpeedSend.test.tsx > SpeedSend > should have correct validations :
src/containers/Template/Form/SpeedSend/SpeedSend.test.tsx#L62
Error: Unable to fire a "change" event - please provide a DOM element.
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>...
❯ createEvent node_modules/@testing-library/dom/dist/events.js:27:11
❯ Function.createEvent.<computed> [as change] node_modules/@testing-library/dom/dist/events.js:106:38
❯ Function.fireEvent.<computed> [as change] node_modules/@testing-library/dom/dist/events.js:110:68
❯ Function.fireEvent.<computed> [as change] node_modules/@testing-library/react/dist/fire-event.js:15:52
❯ src/containers/Template/Form/SpeedSend/SpeedSend.test.tsx:62:17
❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
CI
Process completed with exit code 1.
|
CI
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
CI
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|