changed shallow copy to use JSON.parse deep copy #503 #2060
ci-build.yml
on: pull_request
Lint & Unit Tests
4m 57s
End-to-End (with mock data) Tests
6m 8s
End-to-End (with api) Tests
8m 34s
Docker
0s
Annotations
5 errors
src/items/itemDialog.component.test.tsx > ItemDialog > Add Item > displays an error message if a step is disabled and clears the errors until the finish button is enabled:
src/items/itemDialog.component.test.tsx#L487
Error: expect(element).toBeDisabled()
Received element is not disabled:
<button
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1c52rb6-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
/>
❯ src/items/itemDialog.component.test.tsx:487:60
|
src/items/itemDialog.component.test.tsx > ItemDialog > Add Item > displays error message when property values type is incorrect:
src/items/itemDialog.component.test.tsx#L735
TestingLibraryElementError: Unable to find an element with the text: Date format: dd/MM/yyyy. 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
style="padding-right: 1024px; overflow: hidden;"
>
<div
aria-hidden="true"
/>
<div
class="MuiDialog-root MuiModal-root css-zw3mfo-MuiModal-root-MuiDialog-root"
role="presentation"
>
<div
aria-hidden="true"
class="MuiBackdrop-root MuiModal-backdrop css-yiavyu-MuiBackdrop-root-MuiDialog-backdrop"
style="opacity: 1; webkit-transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"
/>
<div
data-testid="sentinelStart"
tabindex="0"
/>
<div
class="MuiDialog-container MuiDialog-scrollPaper css-hz1bth-MuiDialog-container"
role="presentation"
style="opacity: 1; webkit-transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"
tabindex="-1"
>
<div
aria-labelledby=":rcn:"
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation24 MuiDialog-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthLg MuiDialog-paperFullWidth css-uzllir-MuiPaper-root-MuiDialog-paper"
role="dialog"
>
<h2
class="MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-bdhsul-MuiTypography-root-MuiDialogTitle-root"
id=":rcn:"
>
<div
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-12 css-13i4rnv-MuiGrid-root"
>
Add Item
</div>
</h2>
<div
class="MuiDialogContent-root css-ypiqx9-MuiDialogContent-root"
>
<div
class="MuiStepper-root MuiStepper-horizontal css-r3cjyt-MuiStepper-root"
>
<div
class="MuiStep-root MuiStep-horizontal css-179wqtw-MuiStep-root"
>
<span
class="MuiStepLabel-root MuiStepLabel-horizontal css-ascpo7-MuiStepLabel-root"
>
<span
class="MuiStepLabel-iconContainer Mui-active css-vnkopk-MuiStepLabel-iconContainer"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiStepIcon-root Mui-active css-1u4zpwo-MuiSvgIcon-root-MuiStepIcon-root"
focusable="false"
viewBox="0 0 24 24"
>
<circle
cx="12"
cy="12"
r="12"
/>
<text
class="MuiStepIcon-text css-117w1su-MuiStepIcon-text"
dominant-baseline="central"
text-anchor="middle"
x="12"
y="12"
>
1
</text>
</svg>
</span>
<span
class="MuiStepLabel-labelContainer css-1vyamtt-MuiStepLabel-labelContainer"
>
<span
class="MuiStepLabel-label Mui-active css-1hv8oq8-MuiStepLabel-label"
>
Add item details
</span>
</span>
</span>
</div>
<div
class="MuiStepConnector-root MuiStepConnector-horizontal css-j5w0w9-MuiStepConnector-root"
>
<span
class="MuiStepConnector-line MuiStepConnector-lineHorizontal css-z7uhs0-MuiStepConnector-line"
/>
</div>
<div
class="MuiStep-root MuiStep-horizontal css-179wqtw-MuiStep-root"
>
<span
class="MuiStepLabel-root MuiStepLabel-horizon
|
src/systems/systemItemsTable.component.test.tsx > SystemItemsTable > SystemItemsTable (usageStatus) > sets the usages status one by one:
src/systems/systemItemsTable.component.test.tsx#L570
AssertionError: expected "spy" to be called with arguments: [ [ …(4) ] ]
Received:
1st spy call:
Array [
Array [
Object {
"catalogue_item_id": "1",
"item_id": "KvT2Ox7n",
"usageStatus": 2,
},
Object {
"catalogue_item_id": "1",
"item_id": "G463gOIA",
- "usageStatus": 2,
+ "usageStatus": "",
},
Object {
"catalogue_item_id": "25",
"item_id": "7Lrj9KVu",
- "usageStatus": 2,
+ "usageStatus": "",
},
Object {
"catalogue_item_id": "25",
"item_id": "QQen23yW",
- "usageStatus": 2,
+ "usageStatus": "",
},
],
]
2nd spy call:
Array [
Array [
Object {
"catalogue_item_id": "1",
"item_id": "KvT2Ox7n",
- "usageStatus": 2,
+ "usageStatus": "",
},
Object {
"catalogue_item_id": "1",
"item_id": "G463gOIA",
"usageStatus": 2,
},
Object {
"catalogue_item_id": "25",
"item_id": "7Lrj9KVu",
- "usageStatus": 2,
+ "usageStatus": "",
},
Object {
"catalogue_item_id": "25",
"item_id": "QQen23yW",
- "usageStatus": 2,
+ "usageStatus": "",
},
],
]
3rd spy call:
Array [
Array [
Object {
"catalogue_item_id": "1",
"item_id": "KvT2Ox7n",
- "usageStatus": 2,
+ "usageStatus": "",
},
Object {
"catalogue_item_id": "1",
"item_id": "G463gOIA",
- "usageStatus": 2,
+ "usageStatus": "",
},
Object {
"catalogue_item_id": "25",
"item_id": "7Lrj9KVu",
"usageStatus": 2,
},
Object {
"catalogue_item_id": "25",
"item_id": "QQen23yW",
- "usageStatus": 2,
+ "usageStatus": "",
},
],
]
4th spy call:
Array [
Array [
Object {
"catalogue_item_id": "1",
"item_id": "KvT2Ox7n",
- "usageStatus": 2,
+ "usageStatus": "",
},
Object {
"catalogue_item_id": "1",
"item_id": "G463gOIA",
- "usageStatus": 2,
+ "usageStatus": "",
},
Object {
"catalogue_item_id": "25",
"item_id": "7Lrj9KVu",
- "usageStatus": 2,
+ "usageStatus": "",
},
Object {
"catalogue_item_id": "25",
"item_id": "QQen23yW",
"usageStatus": 2,
},
],
]
Number of calls: 4
❯ src/systems/systemItemsTable.component.test.tsx:570:37
|
Lint & Unit Tests
Process completed with exit code 1.
|
End-to-End (with mock data) Tests
Process completed with exit code 1.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Inventory management system Screenshots
Expired
|
992 KB |
|