cypress-enterprise-commands
Version:
Reusable Cypress custom commands for enterprise web applications
14 lines (13 loc) • 877 B
TypeScript
declare namespace Cypress {
interface Chainable<Subject> {
checkAllMultiSelect(multiselectIndex: number, status: boolean): Chainable<any>;
checkAllMultiSelectDialog(multiselectIndex: number, status: boolean): Chainable<any>;
selectSpecificOptionFromDropDown(attrName: string, srch: string, optionIndex?: number): Chainable<any>;
getElementDropDownList(position: string, index: number): Chainable<any>;
getItemInDropDownList(optionIndex: number | "first" | "last", attrName: string): Chainable<string>;
closeDropDown(attr: string): Chainable<any>;
clearMultiSelect(index: number): Chainable<any>;
selectPrimeNGDropdownOption(dataTestId: string, searchKeyword: string): Chainable<any>;
selectPrimeNGDropdownByIndex(optionIndex: number | "first" | "last", dataTestId: string): Chainable<string>;
}
}