UNPKG

2.93 kBTypeScriptView Raw
1import { locator } from '@instructure/ui-test-locator';
2import { accessible, parseQueryArguments, findWithLabel, findWithText, findWithTitle, findByQuery, findAllByQuery, matchesSelector, querySelectorAll, querySelector, firstOrNull, wrapQueryResult, find, findAll, findAllFrames, findFrame, debug } from '@instructure/ui-test-queries';
3import { mount, unmount, stub, spy, viewport, match } from '@instructure/ui-test-sandbox';
4import type { SinonStub, SinonSpy, SinonSandbox } from '@instructure/ui-test-sandbox';
5import './utils/shims';
6import { waitForExpect } from './utils/waitForExpect';
7import { expect } from './utils/expect';
8import { generateA11yTests } from './utils/generateA11yTests';
9import { generateComponentExamples, StoryConfig, Example, ExamplesPage } from './utils/generateComponentExamples';
10import { generatePropCombinations } from './utils/generatePropCombinations';
11declare global {
12 export namespace Chai {
13 interface Assertion {
14 readonly contain: Assertion;
15 exactly(expected: number): Assertion;
16 text(expected: string): void;
17 className(expected: string): void;
18 descendants(expected: string): void;
19 children(expected: string): void;
20 ancestors(expected: string): void;
21 parents(expected: string): void;
22 attribute(expectedAttribute: string, expectedAttributeValue?: string): void;
23 style(expected: string, expectedAttributeValue?: string | number): void;
24 bounds(expected: string, expectedAttributeValue?: string | number): void;
25 tagName(expected: string): void;
26 id(expected: string): void;
27 visible(): boolean;
28 clickable(): boolean;
29 focus(): boolean;
30 focused(): boolean;
31 focusable(): boolean;
32 tabbable(): boolean;
33 checked(): boolean;
34 selected(): boolean;
35 disabled(): boolean;
36 enabled(): boolean;
37 readonly(): boolean;
38 accessible(): boolean;
39 role(expected: string): void;
40 title(expected: string): void;
41 value(expected: string): void;
42 label(expected: string): void;
43 }
44 }
45}
46export type { StoryConfig, Example, ExamplesPage, SinonStub, SinonSpy, SinonSandbox };
47declare const within: typeof wrapQueryResult;
48declare const wrap: typeof wrapQueryResult;
49declare const wait: typeof waitForExpect;
50export { generateComponentExamples, generatePropCombinations, generateA11yTests, viewport, accessible, parseQueryArguments, findWithLabel, findWithText, findWithTitle, findByQuery, findAllByQuery, matchesSelector, querySelectorAll, querySelector, locator, firstOrNull, within, wrapQueryResult, wrap, waitForExpect, wait, expect, mount, unmount, stub, spy, match, find, findAll, findAllFrames, findFrame, debug };
51//# sourceMappingURL=index.d.ts.map
\No newline at end of file