@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
42 lines • 1.93 kB
TypeScript
import { ComponentWrapper, ElementWrapper } from "@awsui/test-utils-core/selectors";
import ButtonWrapper from '../button/index.js';
export default class ButtonDropdownWrapper extends ComponentWrapper {
static rootSelector: string;
findNativeButton(): ElementWrapper;
findTriggerButton(): ButtonWrapper;
findMainAction(): ButtonWrapper;
findOpenDropdown(): ElementWrapper;
/**
* Finds an item in the open dropdown by item id. Returns null if there is no open dropdown.
*
* This utility does not open the dropdown. To find dropdown items, call `openDropdown()` first.
*/
findItemById(id: string): ElementWrapper;
/**
* Finds `checked` value of item in the open dropdown by item id. Returns null if there is no open dropdown or the item is not a checkbox item.
*
* This utility does not open the dropdown. To find dropdown items, call `openDropdown()` first.
*/
/**
* Finds an expandable category in the open dropdown by category id. Returns null if there is no open dropdown.
*
* This utility does not open the dropdown. To find dropdown items, call `openDropdown()` first.
*/
findExpandableCategoryById(id: string): ElementWrapper;
/**
* Finds the highlighted item in the open dropdown. Returns null if there is no open dropdown.
*
* This utility does not open the dropdown. To find dropdown items, call `openDropdown()` first.
*/
findHighlightedItem(): ElementWrapper;
/**
* Finds all the items in the open dropdown. Returns empty array if there is no open dropdown.
*
* This utility does not open the dropdown. To find dropdown items, call `openDropdown()` first.
*/
findItems(): import("@awsui/test-utils-core/selectors").MultiElementWrapper<ElementWrapper>;
/**
* Finds the disabled reason tooltip for a dropdown item. Returns null if no disabled item with `disabledReason` is highlighted.
*/
findDisabledReason(): ElementWrapper;
}