Openbravo Issue Tracking System - POS2
View Issue Details
0054893POS2POSpublic2024-03-08 09:402024-06-05 12:32
miguel_lopez 
miguel_lopez 
normalminorhave not tried
closedfixed 
5
 
24Q3 
approved
No
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_lopezOBNetwork customer => No
2024-03-08 09:40miguel_lopezTriggers an Emergency Pack => No
2024-03-13 13:58hgbotMerge Request Status => open
2024-03-13 13:58hgbotNote Added: 0162088
2024-03-14 09:26hgbotNote Added: 0162132
2024-03-19 13:57hgbotMerge Request Statusopen => approved
2024-03-27 17:48hgbotMerge Request Statusapproved => open
2024-04-09 13:54hgbotMerge Request Statusopen => approved
2024-06-05 12:32hgbotResolutionopen => fixed
2024-06-05 12:32hgbotStatusnew => closed
2024-06-05 12:32hgbotFixed in Version => 24Q3
2024-06-05 12:32hgbotNote Added: 0165604
2024-06-05 12:32hgbotNote Added: 0165605
2024-06-05 12:32hgbotNote Added: 0165606
2024-06-05 12:32hgbotNote Added: 0165607

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 [^]
(0165604)
hgbot   
2024-06-05 12:32   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: e10a90e60652c472a244d74ff7880cc053f3c315
Author: Miguel Lopez <miguel.lopez@openbravo.com>
Date: 05-06-2024 10:32:22
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/e10a90e60652c472a244d74ff7880cc053f3c315 [^]

Fixes ISSUE-54893: Create Cypress Tests for Cross Store Sales in React POS. It also allows the usage of other POS besides VBS-2

---
A web-jspack/org.openbravo.pos2/src-test/cypress/e2e/Features/crossStore.spec.js
A web-jspack/org.openbravo.pos2/src-test/cypress/fixtures/e2eFixtures/CrossStore.json
M web-jspack/org.openbravo.pos2/src-test/cypress/e2e/Features/changePayments.spec.js
M web-jspack/org.openbravo.pos2/src-test/cypress/runAllSpecs/runFeaturesSpecsPOS2.spec.js
---
(0165605)
hgbot   
2024-06-05 12:32   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2495 [^]
(0165606)
hgbot   
2024-06-05 12:32   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1416 [^]
(0165607)
hgbot   
2024-06-05 12:32   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: a26aaba23f58f54d6b37f6f6d847c69a6caf6a3c
Author: Miguel Lopez <miguel.lopez@openbravo.com>
Date: 05-06-2024 10:32:29
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/a26aaba23f58f54d6b37f6f6d847c69a6caf6a3c [^]

Fixes ISSUE-54893: Create Cypress Tests for Cross Store Sales in React POS. It also allows the usage of other POS besides VBS-2

---
M web-jspack/org.openbravo.core2/src-test/cypress.env.json.template
---