declare global { namespace Cypress { interface Chainable { /** * Gets the module header (draggable handle area). * @example * cy.m4lWindowBaseHeader().find('button').first().click(); */ m4lWindowBaseHeader (): Chainable /** * Gets a button on the left side of the module by 0-based index. * @example * cy.m4lWindowBaseLeftAction(0).click(); // first left button */ m4lWindowBaseLeftAction ( /** * Button position */ buttonPosition: number, ): Chainable /** * Clicks on the left button of the module by 0-based index. * @example * cy.m4lWindowBaseLeftActionClick(0); */ m4lWindowBaseLeftActionClick ( /** * Button position */ buttonPosition: number, ): Chainable /** * Opens the header menu and returns the menu item at the given 0-based position. * @example * cy.m4lWindowBaseMenuAction(0).click(); // click first menu item */ m4lWindowBaseMenuAction ( /** * Button position */ menuItemPosition: number, ): Chainable /** * Asserts that the menu item at the given position is disabled. * @example * cy.m4lWindowBaseMenuActionDisabled(2); */ m4lWindowBaseMenuActionDisabled ( /** * Button position */ menuItemPosition: number, ): Chainable /** * Finds the dialog by title and returns the container (e.g. to then find and click accept). * @example * cy.m4lDialogWindowActions('Confirm').find('button').contains('Accept').click(); */ m4lDialogWindowActions ( /** * Dialog title */ title: string, ): Chainable /** * Asserts that a popup window has the given title. * @example * cy.m4lDialogWindowActionsValidateTitle('Edit item'); */ m4lDialogWindowActionsValidateTitle ( /** * Dialog title */ title: string, ): Chainable // login(email: string, password: string): Chainable // drag(subject: string, options?: Partial): Chainable // dismiss(subject: string, options?: Partial): Chainable // visit(originalFn: CommandOriginalFn, url: string, options: Partial): Chainable /** * Validate title module of the Window Base * @example * ``` * cy.assertModuleHeaderTitle('N_D:[module_name]'); * ``` */ m4lAssertModuleHeaderTitle (title: string): Chainable /** * Validate icon module of the Window Base * @example * ``` * cy.assertModuleHeaderIcon('i_common_general_action_add'); * ``` */ m4lAssertModuleHeaderIcon (icon: string): Chainable } } } export { };