UNPKG

2.34 kBJavaScriptView Raw
1/*
2 * The MIT License (MIT)
3 *
4 * Copyright (c) 2015 - present Instructure, Inc.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in all
14 * copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 * SOFTWARE.
23 */
24
25import { locator } from '@instructure/ui-test-locator'
26
27import {
28 accessible,
29 parseQueryArguments,
30 findWithLabel,
31 findWithText,
32 findWithTitle,
33 findByQuery,
34 findAllByQuery,
35 matchesSelector,
36 querySelectorAll,
37 querySelector,
38 firstOrNull,
39 wrapQueryResult,
40 find,
41 findAll,
42 findAllFrames,
43 findFrame,
44 debug
45} from '@instructure/ui-test-queries'
46
47import {
48 mount,
49 unmount,
50 stub,
51 spy,
52 viewport
53} from '@instructure/ui-test-sandbox'
54
55import './utils/shims'
56
57import { waitForExpect } from './utils/waitForExpect'
58import { expect } from './utils/expect'
59
60import { generateA11yTests } from './utils/generateA11yTests'
61
62// aliases for backwards compat:
63const within = wrapQueryResult
64const wrap = wrapQueryResult
65const wait = waitForExpect
66
67export {
68 generateA11yTests,
69 viewport,
70 accessible,
71 parseQueryArguments,
72 findWithLabel,
73 findWithText,
74 findWithTitle,
75 findByQuery,
76 findAllByQuery,
77 matchesSelector,
78 querySelectorAll,
79 querySelector,
80 locator,
81 firstOrNull,
82 within,
83 wrapQueryResult,
84 wrap,
85 waitForExpect,
86 wait,
87 expect,
88 mount,
89 unmount,
90 stub,
91 spy,
92 find,
93 findAll,
94 findAllFrames,
95 findFrame,
96 debug
97}