The tests will be written using our end-to-end testing tool Cypress.
It looks like cypress can simulate "focus".
The tests will take the following form:
- Trigger a Keyboard event on document.body
- Verify that the corresponding modal is open with (data-attribute selectors)
The following tests are considered:
- Navigation shortcuts (top line, bottom line, previous / next line)
- Action shortcuts: create document, delete document