@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
97 lines (96 loc) • 3.94 kB
TypeScript
import { ComponentWrapper, ElementWrapper } from "@awsui/test-utils-core/selectors";
import CollectionPreferencesWrapper from '../collection-preferences';
import PaginationWrapper from '../pagination';
import PropertyFilterWrapper from '../property-filter';
import TextFilterWrapper from '../text-filter';
export default class TableWrapper extends ComponentWrapper {
static rootSelector: string;
private containerWrapper;
private findNativeTable;
private findActiveTHead;
findHeaderSlot(): ElementWrapper;
/**
* Alias for findHeaderSlot method for compatibility with previous versions
* @deprecated
*/
findHeaderRegion(): ElementWrapper;
findFooterSlot(): ElementWrapper;
findColumnHeaders(): import("@awsui/test-utils-core/selectors").MultiElementWrapper<ElementWrapper>;
/**
* Returns the element the user clicks when resizing a column.
*
* @param columnIndex 1-based index of the column containing the resizer.
*/
findColumnResizer(columnIndex: number): ElementWrapper;
/**
* Returns a table cell based on given row and column indices.
*
* @param rowIndex 1-based index of the row of the cell to select.
* @param columnIndex 1-based index of the column of the cell to select.
*/
findBodyCell(rowIndex: number, columnIndex: number): ElementWrapper;
findRows(): import("@awsui/test-utils-core/selectors").MultiElementWrapper<ElementWrapper>;
findSelectedRows(): import("@awsui/test-utils-core/selectors").MultiElementWrapper<ElementWrapper>;
/**
* Alias for findEmptySlot method for compatibility with previous versions
* @deprecated
*/
findEmptyRegion(): ElementWrapper;
findEmptySlot(): ElementWrapper;
findLoadingText(): ElementWrapper;
findColumnSortingArea(colIndex: number): ElementWrapper;
/**
* Returns the column that is used for ascending sorting.
*/
findAscSortedColumn(): ElementWrapper;
/**
* Returns the column that is used for descending sorting.
*/
findDescSortedColumn(): ElementWrapper;
/**
* Returns a row selection area for a given index.
*
* @param rowIndex 1-based index of the row selection area to return.
*/
findRowSelectionArea(rowIndex: number): ElementWrapper;
findSelectAllTrigger(): ElementWrapper;
findTextFilter(): TextFilterWrapper;
findPropertyFilter(): PropertyFilterWrapper;
findFilterSlot(): ElementWrapper;
findCollectionPreferences(): CollectionPreferencesWrapper;
findPagination(): PaginationWrapper;
/**
* Returns the button that activates inline editing for a table cell based on given row and column indices.
*
* @param rowIndex 1-based index of the row of the cell to select.
* @param columnIndex 1-based index of the column of the cell to select.
*/
findEditCellButton(rowIndex: number, columnIndex: number): ElementWrapper;
findEditingCell(): ElementWrapper;
private _findEditingCellControls;
findEditingCellSaveButton(): ElementWrapper;
findEditingCellCancelButton(): ElementWrapper;
/**
* Returns the expandable row toggle button.
*
* @param rowIndex 1-based index of the row.
*/
findExpandToggle(rowIndex: number): ElementWrapper;
/**
* Returns `true` if the row expand toggle is present and expanded. Returns `false` otherwise.
*
* @param rowIndex 1-based index of the row.
*/
/**
* Returns items loader of the root table level.
*/
findRootItemsLoader(): ElementWrapper;
/**
* Returns items loader of the specific item (matched by item's track ID).
*
* @param itemId the (expandable) item ID provided with `trackBy` property.
*
* Note: when used with collection-hooks the `trackBy` is set automatically from `expandableRows.getId`.
*/
findItemsLoaderByItemId(itemId: string): ElementWrapper;
}