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

View Revisions: Issue #49888 All Revisions ] Back to Issue ]
Summary 0049888: Cash Up Error prevents from logging in after doing Cash Up, refresh page and trying to log in very quickly
Revision 2023-05-18 17:53 by cberner
Steps To Reproduce ## Updated steps to reproduce
1. Login WebPOS and complete a cashup(if you can complete it with errors better).
2. (For this step we need to have cashup errors in backend). Open DevTools by pressing F12 and run the following line to force an application source code update "localStorage.removeItem("stateIsConsistentWithLocalStorage")"
3. Refresh the application and login, you'll see the "there are cashup errors in the terminal" because the local state has been purged due to an application update.


## Original steps to reproduce
This error can be reproduced in live builds (POS2 with modules), and it could require several tries following the next steps.

0- Log in Web POS and leave a till open; this step prevents the Close Store dialog to appear later in POS2 and causes the cash up process to be faster, which is important to reproduce the error
1- Go to POS2 and log in
2- Do cash up normally and just after clicking on the 'Finish' button, press F5 to refresh the page
3- Repeat steps 1 and 2 until the error appears, preventing you to log in

Note: For now, it is not very clear what the timing is to press F5, and the error could not occur after several tries.
Revision 2023-03-14 17:35 by asier_perez
Steps To Reproduce This error can be reproduced in live builds (POS2 with modules), and it could require several tries following the next steps.

0- Log in Web POS and leave a till open; this step prevents the Close Store dialog to appear later in POS2 and causes the cash up process to be faster, which is important to reproduce the error
1- Go to POS2 and log in
2- Do cash up normally and just after clicking on the 'Finish' button, press F5 to refresh the page
3- Repeat steps 1 and 2 until the error appears, preventing you to log in

Note: For now, it is not very clear what the timing is to press F5, and the error could not occur after several tries.
Revision 2023-03-14 17:29 by asier_perez
Steps To Reproduce This error can be reproduced in live builds (POS2 with modules), and it could require several tries following the next steps.

0- Log in Web POS and leave a till open; this step prevents the Close Store dialog to appear and causes the cash up process to be faster, which is important to reproduce the error
1- Go to POS2 and log in
2- Do cash up normally and just after clicking on the 'Finish' button, press F5 to refresh the page
3- Repeat steps 1 and 2 until the error appears, preventing you to log in

Note: For now, it is not very clear what the timing is to press F5, and the error could not occur after several tries.
Revision 2023-03-14 17:25 by asier_perez
Steps To Reproduce This error can be reproduced in live builds (POS2 with modules), and it could require several tries following the next steps.

0- Log in Web POS and leave a till open
1- Go to POS2 and log in
2- Do cash up normally and just after clicking on the 'Finish' button, press F5 to refresh the page
3- Repeat steps 1 and 2 until the error appears, preventing you to log in

Note: For now, it is not very clear what the timing is to press F5, and the error could not occur after several tries.
Revision 2022-08-16 11:04 by asier_perez
Steps To Reproduce You could try to reproduce this issue manually, but probably you will be unable to reproduce it, since it seems that it must be done as quick as an automatic tests does. In the other hand, you can reproduce the issue in different ways with Cypress automatic tests. Always try it in localhost, so you can remove the error from your data base easily when it happens (explained how later). If you have any questions, you can contact me.

1st way:
    1. Download the attached file in this issue (reproduceCashUpError.spec.js)
    2. Go to /openbravo/modules/org.openbravo.pos2/web-jspack/org.openbravo.pos2/src-test/cypress/integration/Components
    3. Put the downloaded file inside that folder
    4. Follow the steps described in 'Execute tests' below, but with this spec instead of CashUp.spec.js

2nd way:
    1. Open CashUp.spec.js with a code editor
    2. Find the second test: 'Generates big positive amounts & performs Close Till'
    3. Type '.only' (without apostrophes and without spaces) after the 'it' of that test
    4. Copy the whole second test and paste it ten times
    5. Save the file
    6. Follow the steps described in 'Execute tests' below

3rd way:
    1. Follow the steps described in 'Execute tests' below (this way it could be slower to reproduce)

---

Execute tests
    1. Open Cypress with this command in your console: npx cypress open
    2. Click on CashUp.spec.js
    3. Wait until all the tests finish running, or until an error occurs
    4. If the error does not occur, press the R key to run the tests again, and repeat that until the error occurs
    5. Check that the error shows this message: There are cashup errors in this terminal

---

Delete error from your data base
    1. In your terminal, go to the openbravo folder in your POS2 context (not your Cypress context)
    2. Run this command: ant setup
    3. Follow the instructions shown in screen (enter six times, then 'y' and enter, '2' and enter, '0' and enter, '1' and enter)
    4. Find your SID and your DB User Password in the text shown in screen
    5. Run this command, typing your SID instead of <SID>: psql -U tad -h localhost -p 5432 <SID>
    6. Enter your DB User Password
    7. Run this query: delete from obpos_errors;
    8. Exit with Ctrl+D

After doing this, open Cypress. The cash up error should not be shown again.
Revision 2022-07-28 10:21 by asier_perez
Steps To Reproduce You could try to reproduce this issue manually, but probably you will be unable to reproduce it, since it seems that it must be done as quick as an automatic tests does. In the other hand, you can reproduce the issue in different ways with Cypress automatic tests. Always try it in localhost, so you can remove the error from your data base easily when it happens (explained how later). If you do not have any questions, you can contact me.

1st way:
    1. Download the attached file in this issue (reproduceCashUpError.spec.js)
    2. Go to /openbravo/modules/org.openbravo.pos2/web-jspack/org.openbravo.pos2/src-test/cypress/integration/Components
    3. Put the downloaded file inside that folder
    4. Follow the steps described in 'Execute tests' below, but with this spec instead of CashUp.spec.js

2nd way:
    1. Open CashUp.spec.js with a code editor
    2. Find the second test: 'Generates big positive amounts & performs Close Till'
    3. Type '.only' (without apostrophes and without spaces) after the 'it' of that test
    4. Copy the whole second test and paste it ten times
    5. Save the file
    6. Follow the steps described in 'Execute tests' below

3rd way:
    1. Follow the steps described in 'Execute tests' below (this way it could be slower to reproduce)

---

Execute tests
    1. Open Cypress with this command in your console: npx cypress open
    2. Click on CashUp.spec.js
    3. Wait until all the tests finish running, or until an error occurs
    4. If the error does not occur, press the R key to run the tests again, and repeat that until the error occurs
    5. Check that the error shows this message: There are cashup errors in this terminal

---

Delete error from your data base
    1. In your terminal, go to the openbravo folder in your POS2 context (not your Cypress context)
    2. Run this command: ant setup
    3. Follow the instructions shown in screen (enter six times, then 'y' and enter, '2' and enter, '0' and enter, '1' and enter)
    4. Find your SID and your DB User Password in the text shown in screen
    5. Run this command, typing your SID instead of <SID>: psql -U tad -h localhost -p 5432 <SID>
    6. Enter your DB User Password
    7. Run this query: delete from obpos_errors;
    8. Exit with Ctrl+D

After doing this, open Cypress. The cash up error should not be shown again.
Revision 2022-07-28 09:54 by asier_perez
Steps To Reproduce This issue can be reproduced in different ways. Always try it in localhost, so you can remove the error from your data base easily when it happens (explained how later).

---

1st way:
    1. Download the attached file in this issue (reproduceCashUpError.spec.js)
    2. Go to /openbravo/modules/org.openbravo.pos2/web-jspack/org.openbravo.pos2/src-test/cypress/integration/Components
    3. Put the downloaded file inside that folder
    4. Follow the steps described in 'Execute tests' below, but with this spec instead of CashUp.spec.js

2nd way:
    1. Open CashUp.spec.js with a code editor
    2. Find the second test: 'Generates big positive amounts & performs Close Till'
    3. Type '.only' (without apostrophes and without spaces) after the 'it' of that test
    4. Copy the whole second test and paste it ten times
    5. Save the file
    6. Follow the steps described in 'Execute tests' below

3rd way:
    1. Follow the steps described in 'Execute tests' below (this way it could be slower to reproduce)

---

Execute tests
    1. Open Cypress with this command in your console: npx cypress open
    2. Click on CashUp.spec.js
    3. Wait until all the tests finish running, or until an error occurs
    4. If the error does not occur, press the R key to run the tests again, and repeat that until the error occurs
    5. Check that the error shows this message: There are cashup errors in this terminal

---

Delete error from your data base
    1. In your terminal, go to the openbravo folder in your POS2 context (not your Cypress context)
    2. Run this command: ant setup
    3. Follow the instructions shown in screen (enter six times, then 'y' and enter, '2' and enter, '0' and enter, '1' and enter)
    4. Find your SID and your DB User Password in the text shown in screen
    5. Run this command, typing your SID instead of <SID>: psql -U tad -h localhost -p 5432 <SID>
    6. Enter your DB User Password
    7. Run this query: delete from obpos_errors;
    8. Exit with Ctrl+D

After doing this, open Cypress. The cash up error should not be shown again.
Revision 2022-07-28 09:46 by asier_perez
Steps To Reproduce This issue can be reproduced in different ways. Always try it in localhost, instead of Live Builds, so you can delete the error from your data base easily when it happens (explained how later).
---

1st way:
    1. Download the attached file in this issue (reproduceCashUpError.spec.js)
    2. Go to /openbravo/modules/org.openbravo.pos2/web-jspack/org.openbravo.pos2/src-test/cypress/integration/Components
    3. Put the downloaded file inside that folder
    4. Follow the steps described in 'Execute tests' below, but with this spec instead of CashUp.spec.js

2nd way:
    1. Open CashUp.spec.js with a code editor
    2. Find the second test: 'Generates big positive amounts & performs Close Till'
    3. Type '.only' (without apostrophes and without spaces) after the 'it' of that test
    4. Copy the whole second test and paste it ten times
    5. Save the file
    6. Follow the steps described in 'Execute tests' below

3rd way:
    1. Follow the steps described in 'Execute tests' below (this way it could be slower to reproduce)

---

Execute tests
    1. Open Cypress with this command in your console: npx cypress open
    2. Click on CashUp.spec.js
    3. Wait until all the tests finish running, or until an error occurs
    4. If the error does not occur, press the R key to run the tests again, and repeat that until the error occurs
    5. Check that the error shows this message: There are cashup errors in this terminal

---

Delete error from your data base
    1. In your terminal, go to the openbravo folder in your POS2 context (not your Cypress context)
    2. Run this command: ant setup
    3. Follow the instructions shown in screen (enter six times, then 'y' and enter, '2' and enter, '0' and enter, '1' and enter)
    4. Find your SID and your DB User Password in the text shown in screen
    5. Run this command, typing your SID instead of <SID>: psql -U tad -h localhost -p 5432 <SID>
    6. Enter your DB User Password
    7. Run this query: delete from obpos_errors;
    8. Exit with Ctrl+D

After doing this, open Cypress. The cash up error should not be shown again.
Revision 2022-07-28 09:34 by asier_perez
Steps To Reproduce This issue can be reproduced in different ways. Always try it in localhost, instead of Live Builds, so you can delete the error from your data base easily when it happens (explained how later). If you do not have a Cypress context, you can find more info here:

https://docs.google.com/document/d/1tuGxwiNnThguqkrSfUmv9gktmdjdlWmcIkbTPUhVV3g/edit#heading=h.ddkm9x5fo1cn [^]

---

1st way:
    1. Download the attached file in this issue (reproduceCashUpError.spec.js)
    2. Go to /openbravo/modules/org.openbravo.pos2/web-jspack/org.openbravo.pos2/src-test/cypress/integration/Components
    3. Put the downloaded file inside that folder
    4. Follow the steps described in 'Execute tests' below, but with this spec instead of CashUp.spec.js

2nd way:
    1. Open CashUp.spec.js with a code editor
    2. Find the second test: 'Generates big positive amounts & performs Close Till'
    3. Type '.only' (without apostrophes and without spaces) after the 'it' of that test
    4. Copy the whole second test and paste it ten times
    5. Save the file
    6. Follow the steps described in 'Execute tests' below

3rd way:
    1. Follow the steps described in 'Execute tests' below (this way it could be slower to reproduce)

---

Execute tests
    1. Open Cypress with this command in your console: npx cypress open
    2. Click on CashUp.spec.js
    3. Wait until all the tests finish running, or until an error occurs
    4. If the error does not occur, press the R key to run the tests again, and repeat that until the error occurs
    5. Check that the error shows this message: There are cashup errors in this terminal

---

Delete error from your data base
    1. In your terminal, go to the openbravo folder in your POS2 context (not your Cypress context)
    2. Run this command: ant setup
    3. Follow the instructions shown in screen (enter six times, then 'y' and enter, '2' and enter, '0' and enter, '1' and enter)
    4. Find your SID and your DB User Password in the text shown in screen
    5. Run this command, typing your SID instead of <SID>: psql -U tad -h localhost -p 5432 <SID>
    6. Enter your DB User Password
    7. Run this query: delete from obpos_errors;
    8. Exit with Ctrl+D

After doing this, open Cypress. The cash up error should not be shown again.
Revision 2022-07-27 14:08 by asier_perez
Steps To Reproduce This issue can be reproduced in different ways. Always try it in localhost, instead of Live Builds, so you can delete the error from your data base easily when it happens (explained how later). If you do not have a Cypress context, you can find more info here:

https://docs.google.com/document/d/1tuGxwiNnThguqkrSfUmv9gktmdjdlWmcIkbTPUhVV3g/edit#heading=h.ddkm9x5fo1cn [^]

---

1st way:
    1. Open CashUp.spec.js with a code editor
    2. Find the second test: 'Generates big positive amounts & performs Close Till'
    3. Type '.only' (without apostrophes and without spaces) after the 'it' of that test
    4. Copy the whole second test and paste it ten times
    5. Save the file
    6. Follow the steps described in 'Execute tests' below

2nd way:
    1. Download the attached file in this issue (reproduceCashUpError.spec.js)
    2. Go to /openbravo/modules/org.openbravo.pos2/web-jspack/org.openbravo.pos2/src-test/cypress/integration/Components
    3. Put the downloaded file inside that folder
    4. Follow the steps described in 'Execute tests' below, but with this spec instead of CashUp.spec.js

3rd way:
    1. Follow the steps described in 'Execute tests' below (this way it could be slower to reproduce)

---

Execute tests
    1. Open Cypress with this command in your console: npx cypress open
    2. Click on CashUp.spec.js
    3. Wait until all the tests finish running, or until an error occurs
    4. If the error does not occur, press the R key to run the tests again, and repeat that until the error occurs
    5. Check that the error shows this message: There are cashup errors in this terminal

---

Delete error from your data base
    1. In your terminal, go to the openbravo folder in your POS2 context (not your Cypress context)
    2. Run this command: ant setup
    3. Follow the instructions shown in screen (enter six times, then 'y' and enter, '2' and enter, '0' and enter, '1' and enter)
    4. Find your SID and your DB User Password in the text shown in screen
    5. Run this command, typing your SID instead of <SID>: psql -U tad -h localhost -p 5432 <SID>
    6. Enter your DB User Password
    7. Run this query: delete from obpos_errors;
    8. Exit with Ctrl+D

After doing this, open Cypress. The cash up error should not be shown again.
Revision 2022-07-27 14:07 by asier_perez
Steps To Reproduce This issue can be reproduced in different ways. Always try it in localhost, instead of Live Builds, so you can delete the error from your data base easily when it happens (explained how later). If you do not have a Cypress context, you can find more info here:

https://docs.google.com/document/d/1tuGxwiNnThguqkrSfUmv9gktmdjdlWmcIkbTPUhVV3g/edit#heading=h.ddkm9x5fo1cn [^]

---

1st way:
    1. Open CashUp.spec.js with a code editor
    2. Find the second test: 'Generates big positive amounts & performs Close Till'
    3. Type '.only' (without apostrophes and without spaces) after the 'it' of that test
    4. Copy the whole second test and paste it ten times
    5. Save the file
    6. Follow the steps described in 'Execute tests' below

2nd way:
    1. Download the attached file in this issue (reproduceCashUpError.spec.js)
    2. Go to /openbravo/modules/org.openbravo.pos2/web-jspack/org.openbravo.pos2/src-test/cypress/integration/Components
    3. Put the downloaded file inside that folder
    4. Follow the steps described in 'Execute tests' below, but with this spec instead of CashUp.spec.js

3rd way:
    1. Follow the steps described in 'Execute tests' below

---

Execute tests
    1. Open Cypress with this command in your console: npx cypress open
    2. Click on CashUp.spec.js
    3. Wait until all the tests finish running, or until an error occurs
    4. If the error does not occur, press the R key to run the tests again, and repeat that until the error occurs
    5. Check that the error shows this message: There are cashup errors in this terminal

---

Delete error from your data base
    1. In your terminal, go to the openbravo folder in your POS2 context (not your Cypress context)
    2. Run this command: ant setup
    3. Follow the instructions shown in screen (enter six times, then 'y' and enter, '2' and enter, '0' and enter, '1' and enter)
    4. Find your SID and your DB User Password in the text shown in screen
    5. Run this command, typing your SID instead of <SID>: psql -U tad -h localhost -p 5432 <SID>
    6. Enter your DB User Password
    7. Run this query: delete from obpos_errors;
    8. Exit with Ctrl+D

After doing this, open Cypress. The cash up error should not be shown again.
Revision 2022-07-27 14:04 by asier_perez
Steps To Reproduce This issue can be reproduced in different ways. Try it always in localhost, instead of Live Builds, so you can delete the error easily when it happens (explained how later). If you do not have a Cypress context, you can find more info here:

https://docs.google.com/document/d/1tuGxwiNnThguqkrSfUmv9gktmdjdlWmcIkbTPUhVV3g/edit#heading=h.ddkm9x5fo1cn [^]

---

1st way:
    1. Open CashUp.spec.js with a code editor
    2. Find the second test: 'Generates big positive amounts & performs Close Till'
    3. Type '.only' (without apostrophes and without spaces) after the 'it' of that test
    4. Copy the whole second test and paste it ten times
    5. Save the file
    6. Follow the steps described in 'Execute tests' below

2nd way:
    1. Download the attached file in this issue (reproduceCashUpError.spec.js)
    2. Go to /openbravo/modules/org.openbravo.pos2/web-jspack/org.openbravo.pos2/src-test/cypress/integration/Components
    3. Put the downloaded file inside that folder
    4. Follow the steps described in 'Execute tests' below, but with this spec instead of CashUp.spec.js

3rd way:
    1. Follow the steps described in 'Execute tests' below

---

Execute tests
    1. Open Cypress with this command in your console: npx cypress open
    2. Click on CashUp.spec.js
    3. Wait until all the tests finish running, or until an error occurs
    4. If the error does not occur, press the R key to run the tests again, and repeat that until the error occurs
    5. Check that the error shows this message: There are cashup errors in this terminal

---

Delete error from your data base
    1. In your terminal, go to the openbravo folder in your POS2 context (not your Cypress context)
    2. Run this command: ant setup
    3. Follow the instructions shown in screen (enter six times, then 'y' and enter, '2' and enter, '0' and enter, '1' and enter)
    4. Find your SID and your DB User Password in the text shown in screen
    5. Run this command, typing your SID instead of <SID>: psql -U tad -h localhost -p 5432 <SID>
    6. Enter your DB User Password
    7. Run this query: delete from obpos_errors;
    8. Exit with Ctrl+D

After doing this, open Cypress. The cash up error should not be shown again.
Revision 2022-07-27 14:00 by asier_perez
Steps To Reproduce This issue can be reproduced in different ways. Try it always in localhost, instead of Live Builds, so you can delete the error easily when it happens (explained how later). If you do not have a Cypress context, you can find more info here:

https://docs.google.com/document/d/1tuGxwiNnThguqkrSfUmv9gktmdjdlWmcIkbTPUhVV3g/edit#heading=h.ddkm9x5fo1cn [^]

---

1st way:
    1. Open CashUp.spec.js with a code editor
    2. Find the second test: 'Generates big positive amounts & performs Close Till'
    3. Type '.only' (without apostrophes and without spaces) after the 'it' of that test
    4. Copy the whole second test and paste it ten times
    5. Save the file
    6. Follow the steps described in 'Execute tests' below

2nd way:
    1. Download the attached file in this issue (reproduceCashUpError.spec.js)
    2. Go to /openbravo/modules/org.openbravo.pos2/web-jspack/org.openbravo.pos2/src-test/cypress/integration/Components
    3. Put the downloaded file inside that folder
    4. Follow the steps described in 'Execute tests' below, but with this spec instead of CashUp.spec.js

3rd way:
    1. Follow the steps described in 'Execute tests' below

---

Execute tests
    1. Open Cypress with this command in your console: npx cypress open
    2. Click on CashUp.spec.js
    3. Wait until all the tests finish running, or until an error occurs
    4. If the error does not occur, press the R key to run the tests again, and repeat that until the error occurs
    5. Check that the error shows this message: There are cashup errors in this terminal

---

Delete error from your localhost
    1. In your terminal, go to the openbravo folder in your POS2 context (not your Cypress context)
    2. Run this command: ant setup
    3. Follow the instructions shown in screen (enter six times, then 'y' and enter, '2' and enter, '0' and enter, '1' and enter)
    4. Find your SID and your DB User Password in the text shown in screen
    5. Run this command, typing your SID instead of <SID>: psql -U tad -h localhost -p 5432 <SID>
    6. Enter your DB User Password
    7. Run this query: delete from obpos_errors;
    8. Exit with Ctrl+D

After doing this, open Cypress. The cash up error should not be shown again.
Revision 2022-07-27 13:06 by asier_perez
Steps To Reproduce This issue can be reproduced in different ways. Try it always in localhost, instead of Live Builds, so you can delete the error easily when it happens (explained how later). If you do not have a Cypress context, you can find more info here:

https://docs.google.com/document/d/1tuGxwiNnThguqkrSfUmv9gktmdjdlWmcIkbTPUhVV3g/edit#heading=h.ddkm9x5fo1cn [^]

---

1st way:
    1. Open CashUp.spec.js with a code editor
    2. Find the second test: 'Generates big positive amounts & performs Close Till'
    3. Type '.only' (without apostrophes and without spaces) after the 'it' of that test
    4. Copy the whole second test and paste it ten times
    5. Save the file
    6. Follow the steps described in 'Execute tests' below

2nd way:
    1. Download the attached file in this issue (reproduceCashUpError.spec.js)
    2. Go to /openbravo/modules/org.openbravo.pos2/web-jspack/org.openbravo.pos2/src-test/cypress/integration/Components
    3. Put the downloaded file inside that folder
    4. Follow the steps described in 'Execute tests' below, but with this spec instead of CashUp.spec.js

3rd way:
    1. Follow the steps described in 'Execute tests' below

---

Execute tests
    1. Open Cypress with this command in your console: npx cypress open
    2. Click on CashUp.spec.js
    3. Wait until all the tests finish running, or until an error occurs
    4. If the error does not occur, press the R key to run the tests again, and repeat that until the error occurs
    5. Check that the error shows this message: There are cashup errors in this terminal

---

Delete error from your localhost
    1. In your terminal, go to the openbravo folder in your POS2 context (not your Cypress context)
    2. Run this command: ant setup
    3. Follow the instructions shown in screen (enter six times, then 'y' and enter, '2' and enter, '0' and enter, '1' and enter)
    4. Find your SID and your DB User Password in the text shown in screen
    5. Run this command, typing your SID instead of <SID>: psql -U tad -h localhost -p 5432 <SID>
    6. Enter your DB User Password
    7. Run this query: delete from obpos_errors;
    8. Exit with Ctrl+D

After doing this, open Cypress. The cash up error should not be shown again in Cypress.


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker