Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

300 B
Raw Blame
declare global {
  namespace Cypress {
    interface Chainable {
      findByTextEnsureVisible(
        text: string,
      ): Cypress.Chainable<JQuery<HTMLElement>>;
    }
  }
}

Cypress.Commands.add("findByTextEnsureVisible", (text) => {
  cy.findByText(text).should("be.visible");
});

export {};