[FOLIO-748] The checkout.js test in ui-testing is fails in a mysterious way. Created: 28/Jul/17 Updated: 12/Nov/18 Resolved: 31/Jul/17 |
|
| Status: | Closed |
| Project: | FOLIO |
| Components: | Continuous Integration |
| Affects versions: | None |
| Fix versions: | None |
| Type: | Bug | Priority: | P2 |
| Reporter: | charles | Assignee: | charles |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 7 hours | ||
| Original estimate: | Not Specified | ||
| Sprint: |
| Description |
|
Jason pointed out that yarn test-checkout was failing. This is disturbing because it ui-testing was very successful the day before. All I can say is that the screen freezes after searching for the user to whom an item was just checked out to. This usually means that there was an alert, confirm or prompt event, since nightmare and electron do not display these. I have alert capturing turned on in the script, but nothing is returned in the results. Furthermore, I cannot replicate this issue in real life. I can checkout and item to a user and then go to their record and view loan history without mishap. I wonder if electron is freezing for some reason? I give up for today, and maybe everything will look better on Monday. This test is running against http://folio-testing.aws.indexdata.com/. |
| Comments |
| Comment by charles [ 28/Jul/17 ] |
|
Using the App FOLIO UI App /scan ("test-checkout") nightmare:actions .type() diku_admin into input[name=username] +0ms |
| Comment by charles [ 31/Jul/17 ] |
|
I just needed to add a bunch of wait actions to the part that confirms that an item has been charged to the appropriate patron, |