Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0046059
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] Coreminoralways2021-03-11 18:252021-07-15 12:42
ReporterlorenzofidalgoView Statuspublic 
Assigned Tojarmendariz 
PrioritynormalResolutionno change requiredFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression levelAutomated tests
Regression date
Regression introduced in release
Regression introduced by commithttps://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/373006f5633b58705817e1ef809f8fdf120f8f4e [^]
Triggers an Emergency PackNo
Summary

0046059: Typing inside input fields is broken in automated tests

DescriptionUsing basic Cypress typing functionality is broken now, due to the New POS is behaving badly treating how text is written in the login input fields (it seems some action is being performed after typing the text inside the input field that induces a clear of that input field).
I attach the following 2 videos with the specific behaviours (pre and post issue) and the context with the specific changesets narrowing down the cause of this issue:
https://drive.google.com/file/d/1FDkndHEoVeX_Y0SeTAjER8wRoiraUEU0/view?usp=sharing [^]
https://drive.google.com/file/d/1DgHqyid3XOWRcc1dpLPf7eSjWzfHeLGl/view?usp=sharing [^]


Since basic functionalities such as cy.get('#user').type(Cypress.env('terminalUser')); can not be performed properly, this situation is blocking the executions of the cypress automated tests.
To reproduce easily this issue, a Cypress context with the automated tests is required.
Steps To Reproduce0-With a Cypress context properly set up, launch the Initial.spec.js tests from POS2 module. Path: .../openbravo/modules/org.openbravo.pos2/web-jspack/org.openbravo.pos2/src-test/cypress/integration/Components/Initial.spec.js
1-Once the test is launched, realise the input fields are sometimes clearing the input field content, inducing the test to fail. (It was working properly previous to this merge).
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0127641)
guilleaer (manager)
2021-04-29 10:10

Is still a problem?
(0127648)
lorenzofidalgo (developer)
2021-04-29 10:29

The problem is still there, yes.
Since the problem is induced by the BarcodeScanner, a temporal workaround that disables it is being used at the beginning of every automated tests to be able to continue working for the moment: "win.OB.App.BarcodeScanner.disable();"
(0130507)
dmiguelez (developer)
2021-07-15 12:42

The tests are already using a workaround to bypass this problem and from the product point of view we are comfortable with it.

- Issue History
Date Modified Username Field Change
2021-03-11 18:25 lorenzofidalgo New Issue
2021-03-11 18:25 lorenzofidalgo Assigned To => Retail
2021-03-11 18:25 lorenzofidalgo Regression level => Automated tests
2021-03-11 18:25 lorenzofidalgo Regression introduced by commit => 373006f5633b58705817e1ef809f8fdf120f8f4e
2021-03-11 18:25 lorenzofidalgo Triggers an Emergency Pack => No
2021-03-11 18:32 lorenzofidalgo Regression introduced by commit 373006f5633b58705817e1ef809f8fdf120f8f4e => https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/373006f5633b58705817e1ef809f8fdf120f8f4e [^]
2021-04-29 10:10 guilleaer Note Added: 0127641
2021-04-29 10:10 guilleaer Assigned To Retail => lorenzofidalgo
2021-04-29 10:10 guilleaer Status new => feedback
2021-04-29 10:29 lorenzofidalgo Note Added: 0127648
2021-04-29 10:30 lorenzofidalgo Assigned To lorenzofidalgo => Retail
2021-04-29 10:30 lorenzofidalgo Status feedback => new
2021-04-29 10:46 guilleaer Resolution time => 1622239200
2021-04-29 10:46 guilleaer Assigned To Retail => platform
2021-04-29 10:46 guilleaer Priority immediate => none
2021-04-29 10:46 guilleaer Severity major => minor
2021-04-29 10:46 guilleaer Status new => acknowledged
2021-05-07 15:00 guilleaer Priority none => normal
2021-05-19 09:30 jarmendariz Assigned To platform => jarmendariz
2021-05-19 09:30 jarmendariz Status acknowledged => scheduled
2021-06-01 19:20 guilleaer Resolution time 1622239200 => 1624917600
2021-07-15 12:42 dmiguelez Note Added: 0130507
2021-07-15 12:42 dmiguelez Status scheduled => closed
2021-07-15 12:42 dmiguelez Resolution open => no change required


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker