You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
1.0 KiB
21 lines
1.0 KiB
import type { ReactTestInstance } from 'react-test-renderer';
|
|
import { AccessibilityStateMatcher } from '../helpers/matchers/accessibilityState';
|
|
import { AccessibilityValueMatcher } from '../helpers/matchers/accessibilityValue';
|
|
import type { TextMatch } from '../matches';
|
|
import type { FindAllByQuery, FindByQuery, GetAllByQuery, GetByQuery, QueryAllByQuery, QueryByQuery } from './makeQueries';
|
|
import { CommonQueryOptions } from './options';
|
|
type ByRoleOptions = CommonQueryOptions & AccessibilityStateMatcher & {
|
|
name?: TextMatch;
|
|
value?: AccessibilityValueMatcher;
|
|
};
|
|
export type ByRoleQueries = {
|
|
getByRole: GetByQuery<TextMatch, ByRoleOptions>;
|
|
getAllByRole: GetAllByQuery<TextMatch, ByRoleOptions>;
|
|
queryByRole: QueryByQuery<TextMatch, ByRoleOptions>;
|
|
queryAllByRole: QueryAllByQuery<TextMatch, ByRoleOptions>;
|
|
findByRole: FindByQuery<TextMatch, ByRoleOptions>;
|
|
findAllByRole: FindAllByQuery<TextMatch, ByRoleOptions>;
|
|
};
|
|
export declare const bindByRoleQueries: (instance: ReactTestInstance) => ByRoleQueries;
|
|
export {};
|