export const guidedTour = {
  close: () => {
    cy.get('body').then(($body) => {
      if ($body.find(`[data-test="guided-tour-modal"]`).length) {
        cy.byTestID('tour-step-footer-secondary')
          .contains('Skip tour')
          .click();
      }
    });
  },
  isOpen: () => cy.byTestID('guided-tour-modal').should('be.visible'),
};
