Openbravo Issue Tracking System - POS2
View Issue Details
0053039POS2POSpublic2023-07-24 12:452023-08-03 13:59
asier_perez 
Triage Platform Base 
normalminoralways
newopen 
5
 
 
No
0053039: Searching a product with the Search button is slower than pressing enter
The time interval between searching a product by using the Search button and the product appearing in the keymap is twice as much as doing the same action but using the enter key. These two ways of doing the same action should take the same time.
0) Copy this product name to your clipboard: GPS Mini
1) Log in POS2
2) Open Developer Tools and go to the Performance tab
5) Click on the Record button (or Ctrl+E) to start recording
6) In POS2, click on the Search bar
7) Paste the product name from your clipboard and quickly press enter
8) Wait until the product appears in the keymap and then, in Developer Tools, click Stop to stop recording and show the performance graphics
9) In the screenshots, search for the moment where you have copied the product name in the search bar and click there to set a timestamp
10) Then search for the moment when the product has appeared in the keymap
11) Adjust the time interval from above to match the time period between the two events => It will be around 400-500 ms (localhost) or 200-250 (livebuilds)
12) Repeat the process but clicking on the Search button near the search bar, instead of pressing the enter key => Note that the time interval will be around 800-1000 ms (localhost) or 400-500 (livebuilds)
No tags attached.
png performance.png (234,240) 2023-07-24 12:45
https://issues.openbravo.com/file_download.php?file_id=18778&type=bug
png
Issue History
2023-07-24 12:45asier_perezNew Issue
2023-07-24 12:45asier_perezAssigned To => Retail
2023-07-24 12:45asier_perezFile Added: performance.png
2023-07-24 12:45asier_perezTriggers an Emergency Pack => No
2023-07-24 12:47asier_perezDescription Updatedbug_revision_view_page.php?rev_id=26487#r26487
2023-07-24 12:48asier_perezSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=26489#r26489
2023-07-24 13:04asier_perezNote Added: 0152824
2023-08-02 11:26asier_perezRegression level => Automated tests
2023-08-02 11:26asier_perezRegression introduced in release => main
2023-08-02 11:31asier_perezDescription Updatedbug_revision_view_page.php?rev_id=26571#r26571
2023-08-03 10:47asier_perezPrioritynormal => immediate
2023-08-03 11:47shuehnerIssue Monitored: shuehner
2023-08-03 12:07AugustoMauchAssigned ToRetail => Triage Platform Base
2023-08-03 13:59asier_perezRegression levelAutomated tests =>
2023-08-03 13:59asier_perezRegression introduced in releasemain =>
2023-08-03 13:59asier_perezPriorityimmediate => normal
2023-08-03 13:59asier_perezDescription Updatedbug_revision_view_page.php?rev_id=26580#r26580
2023-08-03 13:59asier_perezSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=26581#r26581

Notes
(0152824)
asier_perez   
2023-07-24 13:04   
This issue causes Cypress tests to fail unless we increase the command timeouts or we make Cypress to use the enter key as a workaround, as in this merge request: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1972 [^]