Openbravo Issue Tracking System - POS2
View Issue Details
0054893POS2POSpublic2024-03-08 09:402024-03-14 09:26
miguel_lopez 
miguel_lopez 
normalminorhave not tried
newopen 
5
 
 
No
0054893: Create Cypress Tests for Cross Store Sales in React POS
There are currently no tests developed in Cypress for the development of Cross Store sales in React.

Generate a set of tests for the following functionalities:

Add a new product from a cross store.

Modify a line (multiple units) from the product information from a line.

Modify a line from the Delivery Modes popover.

Important: There is not currently an easy option to make a test in a Vall Boi terminal, and changes need to be done in the following places:

cypress.env.json.template: Add more options so the terminal access information is stored there. Proposal/example:

{
    "baseUrl": "http://localhost:3000", [^]
    "VBS-2" : {
        "terminalUrl": "/?terminal=VBS-2",
        "terminalUser": "vallblanca",
        "terminalPassword": "openbravo"
    },
    "VB-2": {
        "terminalUrl": "/?terminal=VB-2",,
        "terminalUser": "vallblanca",
        "terminalPassword": "openbravo"
    }
    "timeoutCachingResources": "120000",
    "timeoutPageLoad": "30000",
    "timeoutCommand": "10000"
}

logIn.js: Change the cy.logInProcess function so it uses those elements. For that, we will add a parameter (i.e. terminalName) that if it is empty will use the VBS-2 configuration. Proposal/example:

Y luego en la función de login algo así: cy.logInProcess = (terminalName = 'VBS-2') => { ... }
N/A
No tags attached.
Issue History
2024-03-08 09:40miguel_lopezNew Issue
2024-03-08 09:40miguel_lopezAssigned To => miguel_lopez
2024-03-08 09:40miguel_lopezTriggers an Emergency Pack => No
2024-03-13 13:58hgbotNote Added: 0162088
2024-03-14 09:26hgbotNote Added: 0162132

Notes
(0162088)
hgbot   
2024-03-13 13:58   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2495 [^]
(0162132)
hgbot   
2024-03-14 09:26   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1416 [^]