Playwright · Senior · Question 12 of 77
How do you test an app that logs in through an external SSO provider?
- 1Always log in through the real provider UI in every test
- 2Bypass it with a test token or a test IdP, plus few real-login tests
- 3Skip testing logged-in pages since SSO can't be automated
Show the answer
Correct answer: Bypass it with a test token or a test IdP, plus few real-login tests
Explanation
Third-party login pages are slow, change without notice and may block bots. A backdoor in test environments or a fake IdP keeps most tests stable.