Openbravo Issue Tracking System - POS2
View Issue Details
0053342POS2POSpublic2023-08-31 08:432023-10-19 08:30
andre_montenegro 
andre_montenegro 
normalmajorhave not tried
closedfixed 
5
 
 
Automated tests
2023-08-29
No
0053342: Fix viewOrdersOfCustomer Cypress test failure in CI
Cypress test is failing due a regression introduced on August 28th - 29th.

viewOrdersOfCustomer.spec.js first test is failing when assigning a business partner to the order, in the step where the test is searching for the Business Partner "Arturo Montoro".
This search fails with the message "Customer not found", and the "Search" field disappears.

Expected behavior: Customer "Arturo Montoro" should exist and be assigned to the ticket once the test clicks "Search" button.

Looks that this behavior is only reproducible after executing first "credit sales" related previous test (last test from ticket.spec.js)

Test path:
openbravo/modules/org.openbravo.pos2/web-jspack/org.openbravo.pos2/src-test/cypress/e2e/Features/viewOrdersOfCustomer.spec.js

Failing job:
https://builds.openbravo.com/view/modules/job/mod-cypress/ [^]

First failure: https://builds.openbravo.com/view/modules/job/mod-cypress/2981/ [^]
Execute Cypress tests with job:
https://builds.openbravo.com/view/modules/job/mod-cypress/ [^]
Detect which commit introduces the regression and revert/fix it.

Cypress tests MUST NOT be modified.
No tags attached.
depends on defect 0053548 closed justin_patterson Credit Sales tests 
png View.orders-of-customer-tests(failed).png (119,334) 2023-08-31 08:43
https://issues.openbravo.com/file_download.php?file_id=18920&type=bug
png
Issue History
2023-08-31 08:43andre_montenegroNew Issue
2023-08-31 08:43andre_montenegroAssigned To => Retail
2023-08-31 08:43andre_montenegroFile Added: View.orders-of-customer-tests(failed).png
2023-08-31 08:43andre_montenegroRegression level => Automated tests
2023-08-31 08:43andre_montenegroRegression date => 2023-08-29
2023-08-31 08:43andre_montenegroTriggers an Emergency Pack => No
2023-09-01 09:21andre_montenegroDescription Updatedbug_revision_view_page.php?rev_id=26751#r26751
2023-09-01 13:15hgbotNote Added: 0154347
2023-09-01 13:18hgbotNote Added: 0154348
2023-10-19 08:29andre_montenegroRelationship addeddepends on 0053548
2023-10-19 08:30andre_montenegroStatusnew => scheduled
2023-10-19 08:30andre_montenegroAssigned ToRetail =>
2023-10-19 08:30andre_montenegroStatusscheduled => resolved
2023-10-19 08:30andre_montenegroResolutionopen => fixed
2023-10-19 08:30andre_montenegroAssigned To => andre_montenegro
2023-10-19 08:30andre_montenegroNote Added: 0156034
2023-10-19 08:30andre_montenegroStatusresolved => closed

Notes
(0154347)
hgbot   
2023-09-01 13:15   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2060 [^]
(0154348)
hgbot   
2023-09-01 13:18   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2060 [^]
(0156034)
andre_montenegro   
2023-10-19 08:30   
Issue closed as it has been completely solved here: https://issues.openbravo.com/view.php?id=53548 [^]