Openbravo Issue Tracking System - POS2
View Issue Details
0046760POS2POSpublic2021-05-20 14:592024-02-12 15:50
lorenzofidalgo 
Retail 
normalminoralways
closedfixed 
5
pi 
 
No
0046760: Sidebar buttons can not be clicked properly with automated tests
Unlike the rest of the POS2 buttons, some siderbar buttons are not clickable using a simple Cypress order such as "cy(<ID>).click()".
Clicking in them will throw the tooltip message with the name of the section (Orders, Customers...) but the section will not be open.
This behaviour is inconsistent due to the rest of the buttons work properly.

It seems the component has some "nodes" and that is why it can not be plainly clicked.
0-With a Cypress context properly set up, go to Customers.spec.js test from POS2 module. Path: .../openbravo/modules/org.openbravo.pos2/web-jspack/org.openbravo.pos2/src-test/cypress/integration/Components/Customers.spec.js
1-Find the following order in the code:
cy.get('[data-testid="OBPOS2_Customers"]').then(customersButton => {
    customersButton[0].click();
  });
2-The plain order should be cy.get('[data-testid="OBPOS2_Customers"]').click(); but this order is not working and the previous workaround has had to be applied.
No tags attached.
png SidebarButtons.png (56,186) 2021-05-20 14:59
https://issues.openbravo.com/file_download.php?file_id=15793&type=bug
png
Issue History
2021-05-20 14:59lorenzofidalgoNew Issue
2021-05-20 14:59lorenzofidalgoAssigned To => Retail
2021-05-20 14:59lorenzofidalgoFile Added: SidebarButtons.png
2021-05-20 14:59lorenzofidalgoTriggers an Emergency Pack => No
2021-05-21 18:36guilleaerResolution time => 1625349600
2021-05-21 18:36guilleaerStatusnew => acknowledged
2021-07-14 13:22dmiguelezResolution time1625349600 => 1633039200
2021-07-15 17:59dmiguelezResolution time1633039200 => 1638313200
2024-02-12 15:49lorenzofidalgoResolutionopen => fixed
2024-02-12 15:50lorenzofidalgoStatusacknowledged => scheduled
2024-02-12 15:50lorenzofidalgoNote Added: 0160631
2024-02-12 15:50lorenzofidalgoStatusscheduled => resolved
2024-02-12 15:50lorenzofidalgoStatusresolved => closed

Notes
(0160631)
lorenzofidalgo   
2024-02-12 15:50   
Tested again and the issue is already fixed