DEV Community 👩‍💻👨‍💻

Discussion on: Selenium Testing - How to sign in to Two-factor authentication?

Collapse
 
thisisjoelc profile image
Joel Clemence

Logging in and authentication are two challenges to automated testing, in our team we bypass the whole process for simplicity's sake but I do see the benefit in automating the testing here. Would you create a test user for your e2e tests?

Collapse
 
j_sakamoto profile image
jsakamoto Author

Yes I do.

In some case, creating (registration) user account for testing, enabling 2FA, and getting 2FA secret key, are included our testing scenario.

But in another case, I think, bypassing those processes is best choice for keeping simply it and stabilize testing.