Openbravo Issue Tracking System - POS2
View Issue Details
0051807POS2POSpublic2023-03-08 12:162024-02-19 09:42
caristu 
Retail 
highminorhave not tried
newopen 
5
 
 
No
0051807: Unexpected console errors in some story tests
Storyshots.test.js shows console errors when executed:

- "console.error Warning: Invalid argument supplied to oneOfType, expected an instance of array."
- ./components/PaymentIntegration/stories/Autotest.stories.jsx shows error: "_ is not defined"
1) Run npm test modules/org.openbravo.core2/web-jspack/org.openbravo.core2/src/storybook/Storyshots.test.js

See that errors appears in the console. See attached.

Note that these errors are also displayed in the browser console when opening the stories with story book.

And they also can be seen looking at artifact "jest.log" in CI
No tags attached.
related to defect 0051805 closed Triage Platform Base Storyshots.test.js fails under some circumstances 
Issue History
2023-03-08 12:16caristuNew Issue
2023-03-08 12:16caristuAssigned To => Retail
2023-03-08 12:16caristuFile Added: error.png
2023-03-08 12:16caristuTriggers an Emergency Pack => No
2023-03-08 12:16caristuIssue generated from0051805
2023-03-08 12:16caristuRelationship addedrelated to 0051805
2023-03-08 12:16caristuDescription Updatedbug_revision_view_page.php?rev_id=25657#r25657
2023-03-08 12:17caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=25659#r25659
2023-03-13 16:57caristuSummaryStoryshots.test.js throws console errors => Unexpected console errors in some story tests
2023-03-13 16:57caristuDescription Updatedbug_revision_view_page.php?rev_id=25690#r25690
2023-03-13 16:57caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=25691#r25691
2023-03-13 17:02caristuDescription Updatedbug_revision_view_page.php?rev_id=25692#r25692
2023-03-13 17:02caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=25693#r25693
2024-02-19 09:42caristuDescription Updatedbug_revision_view_page.php?rev_id=27537#r27537
2024-02-19 09:42caristuFile Deleted: error.png

There are no notes attached to this issue.