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

75 lines (74 loc) 2.69 kB
import { ComponentWrapper, ElementWrapper } from "@awsui/test-utils-core/selectors"; import ButtonWrapper from '../button'; declare class TabWrapper extends ComponentWrapper { findDisabledReason(): ElementWrapper; } export default class TabsWrapper extends ComponentWrapper { static rootSelector: string; /** * Finds all tab headers and returns the clickable elements from their labels. */ findTabLinks(): import("@awsui/test-utils-core/selectors").MultiElementWrapper<ElementWrapper>; /** * Finds the tab at the given position (1-based) and returns the clickable element from its tab label. * * @param index 1-based index of the clickable element to return */ findTabLinkByIndex(index: number): TabWrapper; /** * Finds the tab header container at the given position (1-based) and returns the element. * * @param index 1-based index of the clickable element to return */ findTabHeaderContentByIndex(index: number): ElementWrapper; /** * Finds the tab with the given ID and returns the clickable element from its tab label. * * @param id ID of the clickable element to return */ findTabLinkById(id: string): TabWrapper; /** * Finds the currently focused tab, which might not be active if disabled with a reason. */ findFocusedTab(): ElementWrapper; /** * Finds the dismissible button by using the tab index. * * @param index 1-based index of the clickable element to return */ findDismissibleButtonByTabIndex(index: number): ButtonWrapper; /** * Finds the dismissible button by using the tab id * * @param id ID of the clickable element to return */ findDismissibleButtonByTabId(id: string): ButtonWrapper; /** * Finds the tab action by using the tab id * @param id ID of the clickable element to return */ findActionByTabId(id: string): ElementWrapper; /** * Finds the tab action by using the tab index * @param index 1-based index of the clickable element to return */ findActionByTabIndex(index: number): ElementWrapper; /** * Finds the currently active tab and returns the clickable element from its tab label. */ findActiveTab(): ElementWrapper; /** * Finds the currently displayed tab content and returns it. */ findTabContent(): ElementWrapper; /** * Finds the dismissible button for the active tab */ findActiveTabDismissibleButton(): ButtonWrapper; /** * Finds the tab action for the active tab */ findActiveTabAction(): ElementWrapper; findActions(): ElementWrapper; } export {};