@awsui/components-react
Version:
AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A
25 lines (24 loc) • 1.16 kB
TypeScript
import { ComponentWrapper, ElementWrapper } from '@awsui/test-utils-core/dom';
import OptionWrapper from './option';
export default abstract class DropdownHostComponentWrapper extends ComponentWrapper {
abstract findTrigger(): ElementWrapper;
findDropdown(): DropdownContentWrapper;
openDropdown(): void;
closeDropdown(): void;
selectOption(index: number): void;
selectOptionByValue(value: string): void;
}
export declare class DropdownContentWrapper extends ComponentWrapper {
findDisabledOptions(): Array<OptionWrapper>;
findFooterRegion(): ElementWrapper | null;
findHighlightedAriaLiveRegion(): ElementWrapper | null;
findHighlightedMatches(): Array<ElementWrapper>;
findHighlightedOption(): OptionWrapper | null;
findOpenDropdown(): ElementWrapper | null;
findOption(optionIndex: number): OptionWrapper | null;
findOptionByValue(value: string): OptionWrapper | null;
findOptionInGroup(groupIndex: number, optionIndex: number): OptionWrapper | null;
findOptions(): Array<OptionWrapper>;
findOptionsContainer(): ElementWrapper | null;
findSelectedOptions(): Array<OptionWrapper>;
}