-
Notifications
You must be signed in to change notification settings - Fork 111
/
index.js
39 lines (37 loc) · 1.58 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
require('./default')();
require('./animated-dialog')();
require('./animated-trigger')();
require('./escape-deactivates')();
require('./initial-element-no-escape')();
require('./initially-focused-container')();
require('./hidden-treasures')();
require('./nested')();
require('./sibling')();
require('./tricky-initial-focus')();
require('./input-activation')();
require('./delay')();
require('./radio')();
require('./iframe')();
// loading this in a Cypress env causes Chrome to fail in GitHub CI (even with
// the `"chromeWebSecurity": false` option set in the cypress.json config file),
// and causes FireFox to fail both locally and in CI due to security context
// violations; but it's still a good demo to have, and at least we can test
// it manually
// eslint-disable-next-line no-undef -- process is defined via Rollup
if (!process.env.IS_CYPRESS_ENV) {
require('./in-iframe')(); // TEST MANUALLY (causes Cypress to fail due to security context violations)
}
require('./allow-outside-click')();
require('./click-outside-deactivates')();
require('./set-return-focus')();
require('./set-return-focus-function')();
require('./no-delay')();
require('./multiple-elements')();
require('./multiple-elements-delete')();
require('./multiple-elements-delete-all')();
require('./multiple-elements-multiple-traps')();
require('./in-open-shadow-dom')();
require('./with-shadow-dom')(); // TEST MANUALLY (Cypress doesn't support Shadow DOM well)
require('./negative-tabindex')();
require('./negative-tabindex-last')();
require('./with-open-web-component')(); // TEST MANUALLY (Cypress doesn't support Shadow DOM well)