declare global { namespace Cypress { interface Chainable { /** * Gets the tab button at the given index and asserts its text equals tabTitle. * @example * cy.m4lTabButton('[class*="M4LTab-root"]', 0); // Without title * cy.m4lTabButton('[class*="M4LTab-root"]', 0, 'Details'); * cy.m4lTabButton('[class*="M4LTab-root"]', 1, 'History'); */ m4lTabButton( /** * @param selector - The component selector to get the tab button */ selector: string, /** * @param tabIndex - The tab index to get the button */ tabIndex: number, /** * @param tabTitle - The tab title to validate */ tabTitle?: string, ): Chainable } } } export {};