import { ComponentWrapper, ElementWrapper } from '@cloudscape-design/test-utils-core/dom'; import FlashWrapper from './flash'; export default class FlashbarWrapper extends ComponentWrapper { static rootSelector: string; /** * Returns the individual flashes of this flashbar. * * If the items are stacked, only the item at the top of the stack is returned. */ findItems(): Array; /** * Returns a flash item by its id. * * The id is matched against the `id` property of each item passed to the `items` property of the Flashbar component. */ findItemById(id: string): FlashWrapper | null; /** * Returns the individual flashes of this flashbar given the item type. * * If the items are stacked, only the item at the top of the stack is returned. * * If an item is loading its type is considered as "info". */ findItemsByType(type: 'success' | 'warning' | 'info' | 'error'): Array; /** * Returns the toggle button that expands and collapses stacked notifications. */ findToggleButton(): ElementWrapper | null; }