https://cypress.io logo
your code formatted: ``` function getTargetMonth(d...
# e2e-testing
a
your code formatted:
Copy code
function getTargetMonth(div) {
  cy.then(() => {
    if (div > 0) {
      cy.get('.fc-prev-button').click()
      div - 1;
    } else if (div < 0) {
cy.get('.fc-next-button').click()
  div + 1;
}
  else return
  })
  getTargetMonth(div)
}