From 05e705b1a5d59632c62efeb17a7867e0f0eb0a29 Mon Sep 17 00:00:00 2001 From: Kenneth Powers Date: Mon, 11 May 2020 19:45:48 -0400 Subject: [PATCH] fix(TS): add `selected` to `ByRoleOptions` --- types/queries.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/types/queries.d.ts b/types/queries.d.ts index 970956a5..ee60c6bd 100644 --- a/types/queries.d.ts +++ b/types/queries.d.ts @@ -53,6 +53,11 @@ export interface ByRoleOptions extends MatcherOptions { * in either case. */ hidden?: boolean; + /** + * If true only includes elements in the query set that are marked as + * selected in the accessibility tree, i.e., `aria-selected="true"` + */ + selected?: boolean; /** * Includes every role used in the `role` attribute * For example *ByRole('progressbar', {queryFallbacks: true})` will find
`.