metafresh logo and link to homepage

IT FRESH-858

#577 Button Request shows too many results

Testcase to check if the request button shows the correct results.

  1. Make sure all the roles you will test with have a Supervisor set:
  2. Log in as SuperUser (Role: Admin), check the request button (Aufgabe) down at the bottom on the right, note the number

  3. Click the button:
  4. Check the entries:
  5. Open Vorgang from menu:
  6. Open Vorgang (all) from menu:
  7. Log out and log in again with TestUser, also Role: Admin

  8. Check the request button (Aufgabe) down at the bottom on the right, note the number:
  9. Click the button:
  10. Check the entries:
  11. Open Vorgang from menu:
  12. Open Vorgang (all) from menu:
  13. Create new request entries:
  14. Log out and log in again with TestUser2, Role: Einkauf

  15. Check the request button (Aufgabe) down at the bottom on the right, note the number:
  16. Click the button:
  17. Check the entries:
  18. Open Vorgang from menu:
  19. Log out and log in again with TestUser3, Role: Einkauf

  20. Repeat tests as before:
  21. Log out and log in again with SuperUser

  22. Check the request button (Aufgabe) down at the bottom on the right, note the number:
  23. Click the button:
  24. Check the entries:
  25. Open Vorgang from menu:
  26. Open Vorgang (all) from menu:
  27. Create a material receipt with quality discount and a quality note in Wareneingang POS, as SuperUser

  28. Log out and in again, with all users:
  29. Create another material receipt with quality discount and a quality note in Wareneingang POS, as TestUser2

  30. Log out and in again, with all users:
  31. Check the 2 requests you just created:
  32. Create a request from sales inout as well, for SuperUser (Role: Einkauf has no access to window sales inout):
  33. Check the requests that were created and the number on request buttons:

Note: If a user hase several roles (e.g. SuperUser has roles: Admin and Einkauf), then for this user all the requests created in this test will show up in the request button! Also, if a certain role includes other roles (e.g., if role Admin were including role: Einkauf), then the users with this role would have all requests in the request button, that have sales_rep set with a user of that included role as well.


Zur Quelldatei auf github.com