3 Utility classes to make testing easier.
7 This is a set of methods to simulate mouse or keyboard interaction with an element. Include `mock-interactions.js` and then use them like so:
10 test('can be triggered with space', function(done) {
11 button.addEventListener('keydown', function() {
14 MockInteractions.pressSpace(button);
17 test('can be clicked', function(done) {
18 button.addEventListener('click', function() {
21 MockInteractions.tap(button);