Full-app tests with user authentication


#1

Hi All,

can someone help me and shed some light over how can I test that same page behaves different when user is logged in vs out?

After reading this Running full-app tests in the meteor guide, i can write some simple full-app tests. But the Todos example only show me how to test without authentication.


#2

Run server-side setup code to create a user with a specific username and password, and then call login on the client with that information?


#3

@sashko cool, it works!! thank you so much :slight_smile: