Openbravo Issue Tracking System - POS2
View Issue Details
0054920POS2Corepublic2024-03-12 10:232024-03-12 10:23
NaroaIriarte 
AugustoMauch 
normalminorhave not tried
newopen 
5
 
 
No
0054920: There is a test in BaseForm.test.jsx that fails when executed alone
Inside this test file there is a test that is failing when executed alone. It is working fine if the whole test is executed at once but when the describe in which it is contained is executed, it is failing. It also fails when it is executed atomically (from the it).
It seems that it is expecting a function to be called twice but when executed alone, that function is only called once.
The test is this one: 'transform layout to single column in portrait mode'
Execute the whole test suite BaseForm.test.jsx -> it works
Execute the describe section '<BaseForm> integration tests' -> a test fails
Execute the test 'transform layout to single column in portrait mode' -> it fails
Maybe check if a before each condition in which the calls to the function are cleared up could solve this issue, and then assert it being called just once.
No tags attached.
Issue History
2024-03-12 10:23NaroaIriarteNew Issue
2024-03-12 10:23NaroaIriarteAssigned To => AugustoMauch
2024-03-12 10:23NaroaIriarteTriggers an Emergency Pack => No

There are no notes attached to this issue.