This simplifies waiting for events in tests.
Break some large chunks into smaller files. This change will remove ~600 lines from `page.spec.js`