import { ComponentWrapper, ElementWrapper } from "@cloudscape-design/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. * * Supported options: * * `disabled` (boolean) - Use it to find the disabled or non-disabled item. */ findItemById(id: string, options?: { disabled?: boolean; }): 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. * * Supported options: * * `disabled` (boolean) - Use it to find all disabled or non-disabled items. */ findItems(options?: { disabled?: boolean; }): import("@cloudscape-design/test-utils-core/selectors").MultiElementWrapper; /** * Finds the disabled reason tooltip for a dropdown item. Returns null if no disabled item with `disabledReason` is highlighted. */ findDisabledReason(): ElementWrapper; }