UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

73 lines 2.72 kB
import { ComponentWrapper, ElementWrapper } from "@awsui/test-utils-core/selectors"; import InputWrapper from '../input'; import OptionWrapper from '../internal/option'; export declare class AutosuggestDropdownWrapper extends ComponentWrapper { findOptions(): import("@awsui/test-utils-core/selectors").MultiElementWrapper<OptionWrapper>; /** * Returns an option from the dropdown. * * @param optionIndex 1-based index of the option to select. */ findOption(optionIndex: number): OptionWrapper; /** * Returns an option from the autosuggest by it's value * * @param value The 'value' of the option. */ findOptionByValue(value: string): OptionWrapper; /** * Returns an option from the dropdown. * * @param groupIndex 1-based index of the group to select an option in. * @param optionIndex 1-based index of the option to select. */ findOptionInGroup(groupIndex: number, optionIndex: number): OptionWrapper; /** * Use this element to scroll through the list of options */ findOptionsContainer(): ElementWrapper; findFooterRegion(): ElementWrapper; findOpenDropdown(): ElementWrapper; findHighlightedOption(): OptionWrapper; /** * Returns all the selected options. */ findDisabledOptions(): import("@awsui/test-utils-core/selectors").MultiElementWrapper<OptionWrapper>; /** * Returns highlighted text fragments from all of the options. * Options get highlighted when they match the value of the input field. */ findHighlightedMatches(): import("@awsui/test-utils-core/selectors").MultiElementWrapper<ElementWrapper>; findHighlightedAriaLiveRegion(): ElementWrapper; } export default class AutosuggestWrapper extends InputWrapper { static rootSelector: string; /** * @param options * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag. */ findDropdown(options?: { expandToViewport: boolean; }): AutosuggestDropdownWrapper; /** * @param options * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag. */ findStatusIndicator(options?: { expandToViewport: boolean; }): ElementWrapper; /** * @param options * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag. */ findErrorRecoveryButton(options?: { expandToViewport: boolean; }): ElementWrapper; /** * @param options * * expandToViewport (boolean) - Use this when the component under test is rendered with an `expandToViewport` flag. */ findEnteredTextOption(options?: { expandToViewport: boolean; }): ElementWrapper; }