Openbravo Issue Tracking System - POS2
View Issue Details
0052528POS2POSpublic2023-05-23 12:152024-08-12 09:45
andre_montenegro 
ranjith_qualiantech_com 
normalmajoralways
closedunable to reproduce 
5
 
 
Automated tests
No
0052528: Set Business Date step fails in portrait mode test due re-render
Whenever a portrait mode test is executed in an environment where business date and initial count has not been set, the Cypress test fails because framework re-rendered asynchronously the button "Next" when trying to click in it.


Cypress error:
"
We initially found matching element(s), but while waiting for them to become actionable, they disappeared from the page. Common situations why this happens:

  - Your JS framework re-rendered asynchronously

  - Your app code reacted to an event firing and removed the element
"

For now, this issue is only reproducible in portrait Cypress tests.
- Create a context to execute Cypress tests locally, guide:
https://docs.google.com/document/d/13YSZJ-JBeAFG6beS6iZDI8G3NxMt1-jrAAkeiZI3Iuo/edit#heading=h.ir7drhtlyh7e [^]
- PRECONDITION if required, login POS2 and Close Till (Till -> Close Till -> Finish cash up flow)
- Through command line, execute Cypress in window mode "npx cypress open"
- Click "E2E", and launch in "Chrome".
- Search and execute "services-portrait.spec.js"
- Observe how it fails (Screenshot attached)
In order to avoid errors while executing tests in local , review why the button "Next" is being re-rendered when loading for first time.

The idea is to fix it from POS side instead from Cypress, as this behaviour is not observable in a non-portrait mode test, and it can be a potencial error in the future if it's not solved.
No tags attached.
related to defect 0051793 new ablasco Responsive Toolbar Visibility hidden while glitch 
png portrait-initialcount-error.png (170,871) 2023-05-23 12:15
https://issues.openbravo.com/file_download.php?file_id=18557&type=bug
png
Issue History
2023-05-23 12:15andre_montenegroNew Issue
2023-05-23 12:15andre_montenegroAssigned To => Triage Platform Base
2023-05-23 12:15andre_montenegroFile Added: portrait-initialcount-error.png
2023-05-23 12:15andre_montenegroRegression level => Automated tests
2023-05-23 12:15andre_montenegroTriggers an Emergency Pack => No
2023-05-23 12:16andre_montenegroProposed Solution updated
2023-05-23 13:57jarmendarizRelationship addedrelated to 0051793
2024-05-07 16:33lorenzofidalgoTarget Version => 24Q2
2024-05-27 09:57AugustoMauchNote Added: 0165151
2024-05-27 09:57AugustoMauchTarget Version24Q2 =>
2024-08-08 10:51marvintmAssigned ToTriage Platform Base => Retail
2024-08-12 07:21ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2024-08-12 07:34ranjith_qualiantech_comStatusnew => scheduled
2024-08-12 09:45ranjith_qualiantech_comNote Added: 0167953
2024-08-12 09:45ranjith_qualiantech_comStatusscheduled => closed
2024-08-12 09:45ranjith_qualiantech_comResolutionopen => unable to reproduce

Notes
(0165151)
AugustoMauch   
2024-05-27 09:57   
@Andre, I removed the Q2 tag for this one. It cannot be considered as major as the others, because it is not reproducible in a place other than a Cypress test
(0167953)
ranjith_qualiantech_com   
2024-08-12 09:45   
No error occurs when running the portrait cypress test "portraitServices.spec.js".