Openbravo Issue Tracking System - POS2
View Issue Details
0052918POS2POSpublic2023-07-04 12:002023-12-29 09:56
andre_montenegro 
jarmendariz 
lowminorN/A
closedfixed 
5
 
24Q1 
No
0052918: Fix productSearch Cypress test structure
Functions has been defined inside spec file when they should be defined in it's respective function file.

Also, review if any of the functions are already created in folders file.
Avoid duplicating a function that does the same actions.
Having a POS2 context, go to spec file:

.../org.openbravo.core2/src-test/cypress/e2e/Features/productSearch.spec.js

And notice that functions are defined in the spec file.
Functions MUST be defined in it's respective file/folder:

.../org.openbravo.core2/src-test/cypress/functions/productSearch.js

Following functions must be moved to the mentioned file, reviewed and transformed into a custom Cypress command (by adding "cy." before each function name):

checkProductsAreOrderedAlphabetically
checkProductsAreOrderedReverseAlphabetically
changeOrderingToReverseAlphabetical
filterByCharacteristic
assertNumberFilteredProducts
No tags attached.
Issue History
2023-07-04 12:00andre_montenegroNew Issue
2023-07-04 12:00andre_montenegroAssigned To => jarmendariz
2023-07-04 12:00andre_montenegroTriggers an Emergency Pack => No
2023-12-28 08:59hgbotNote Added: 0158683
2023-12-28 09:00jarmendarizStatusnew => scheduled
2023-12-29 09:56hgbotResolutionopen => fixed
2023-12-29 09:56hgbotStatusscheduled => closed
2023-12-29 09:56hgbotFixed in Version => 24Q1
2023-12-29 09:56hgbotNote Added: 0158717
2023-12-29 09:56hgbotNote Added: 0158718

Notes
(0158683)
hgbot   
2023-12-28 08:59   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2314 [^]
(0158717)
hgbot   
2023-12-29 09:56   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 6fdeb2733538d6bd6c3c94ed2b8861cf5146094d
Author: Javier Armendáriz <javier.armendariz@openbravo.com>
Date: 29-12-2023 09:56:17
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/6fdeb2733538d6bd6c3c94ed2b8861cf5146094d [^]

Fixed ISSUE-52918: Refactored productSearch.spec test to move its functions to their respective file

---
M web-jspack/org.openbravo.pos2/src-test/cypress/e2e/Features/productSearch.spec.js
M web-jspack/org.openbravo.pos2/src-test/cypress/functions/productSearch.js
---
(0158718)
hgbot   
2023-12-29 09:56   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2314 [^]