Also checkout these doc:
Guide: Testing Notification Center
There are currently two ways to create a user session for a test:
Historically the Digs test fixtures were used for all tests, however this pattern relies on creating a brand new user, session and project for every single test that runs which is less than ideal.
When authoring any new tests we need to pick a path for the test to assume. Ideally any brand new test suites would be using the global setup method and older tests migrated to the global setup pattern as applicable.
Using the global setup pattern we can create a single user session and project for an entire suite of tests and even for all our tests at some point. This is highly desirable because it speeds up the total time it takes tests to run overall in several ways: