export interface HeaderUtils {
/**
* Returns the
element
*/
getElement: () => HTMLTableCellElement;
/**
* Returns the sort button or `null`
*/
getSortIcon: () => HTMLButtonElement | null;
}
export interface RowUtils {
/**
* Returns the | element
*/
getElement: () => HTMLTableRowElement;
/**
* Returns an array with all elements in the row
*/
getAllCells: () => Array;
/**
* Returns the input element or `null`
*/
getCheckbox: () => HTMLInputElement | null;
/**
* Returns the expand button or `null`
*/
getExpandButton: () => HTMLButtonElement | null;
/**
* Returns if the (row) is expanded
*/
isExpanded: () => boolean;
/**
* Returns if the (row) is selected
*/
isSelected: () => boolean;
/**
* Returns if the (row) is disabled
*/
isDisabled: () => boolean;
}
export interface TestUtilsReturnType {
/**
* Returns the table node or `null` if the table node is not found.
*/
getTable: () => HTMLTableElement;
/**
* Returns an array of elements in the DOM. Throws if there are no elements.
*/
getAllHeaders: () => Array;
/**
* Returns utils for an individual | in the DOM
*/
getHeaderByIndex: (index: number) => HeaderUtils | null;
/**
* Returns the input node for the select all checkbox or `null`
*/
getSelectAllCheckbox: () => HTMLInputElement | null;
/**
* Returns an array of all visible | in the DOM. Throws if there are no elements.
*/
getAllVisibleRows: () => Array;
/**
* Returns an individual in the DOM.
*/
getRowByIndex: (index: number) => RowUtils | null;
/**
* Returns an array of all visible selected in the DOM.
*/
getAllVisibleSelectedRows: () => Array;
}
| |