Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0048697
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] Coreminorhave not tried2022-03-01 12:152022-03-17 14:39
Reporterjorge-garciaView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0048697: Find a way to test processImage.test.js in case the size and file extension are correct

DescriptionJest is not able to work with javascript new Image onLoad method, making test to fail due to a timeout.
Steps To Reproduce-
Proposed SolutionI 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
 
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0047995 closedcaristu Create a component for uploading images 

-  Notes
There are no notes attached to this issue.

- 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 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker