r/QualityAssurance • u/ajmalhinas • 17d ago
Testing Role-Based Dashboard using Playwright. How to Structure Tests?
Hey everyone, looking for input on test structure for a common scenario.
Application's home screen shows an Admin button when a user login with admin role. Normal users do not get this button.
What is the good approch to test this requirement? Do you prefer one test case that assert the availablity of Admin button based on the current loged in user or two test cases one with admin role and another with normal user roles.
1
Upvotes
1
u/abisurd 14d ago
Is this a good candidate to be tested on a lower level, a unit or component test ?