Openbravo Issue Tracking System - POS2 | ||||||||||||
| View Issue Details | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0048697 | POS2 | Core | public | 2022-03-01 12:15 | 2022-03-17 14:39 | |||||||
| Reporter | jorge-garcia | |||||||||||
| Assigned To | Triage Platform Base | |||||||||||
| Priority | normal | Severity | minor | Reproducibility | have not tried | |||||||
| Status | acknowledged | Resolution | open | |||||||||
| Platform | OS | 5 | OS Version | |||||||||
| Product Version | ||||||||||||
| Target Version | Fixed in Version | |||||||||||
| Merge Request Status | ||||||||||||
| Review Assigned To | ||||||||||||
| OBNetwork customer | No | |||||||||||
| Support ticket | ||||||||||||
| Regression level | ||||||||||||
| Regression date | ||||||||||||
| Regression introduced in release | ||||||||||||
| Regression introduced by commit | ||||||||||||
| Triggers an Emergency Pack | No | |||||||||||
| Summary | 0048697: Find a way to test processImage.test.js in case the size and file extension are correct | |||||||||||
| Description | Jest is not able to work with javascript new Image onLoad method, making test to fail due to a timeout. | |||||||||||
| Steps To Reproduce | - | |||||||||||
| Proposed Solution | I found some links that could be useful for this case https://raminmousavi.medium.com/mock-img-element-in-jest-3341c495ca8b [^] https://lzomedia.com/blog/jest-testing-an-asynchronous-image-upload-in-react/ [^] The idea is to find a good solution to this problem | |||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| Relationships |
| |||||||||||
| Attached Files | ||||||||||||
| Issue History | ||||||||||||
| Date Modified | Username | Field | Change | |||||||||
| 2022-03-01 12:15 | jorge-garcia | New Issue | ||||||||||
| 2022-03-01 12:15 | jorge-garcia | Assigned To | => Triage Platform Base | |||||||||
| 2022-03-01 12:15 | jorge-garcia | OBNetwork customer | => No | |||||||||
| 2022-03-01 12:15 | jorge-garcia | Triggers an Emergency Pack | => No | |||||||||
| 2022-03-01 12:16 | jorge-garcia | Relationship added | related to 0047995 | |||||||||
| 2022-03-17 14:38 | AugustoMauch | Summary | Found a way to test processImage.test.js in case the size and file extension are correct => Find a way to test processImage.test.js in case the size and file extension are correct | |||||||||
| 2022-03-17 14:39 | AugustoMauch | Status | new => acknowledged | |||||||||
| There are no notes attached to this issue. |