https://cypress.io logo
Skip test conditionally
# i-need-help
n
I have following problem:
Copy code
someArray.forEach(item => {
 it('test', () => {
  if (item === 'foo') {
    cy.request('foobar').then(() => {
      if (bar) {
        // skip the rest of the test
      } 
    })
  }
 }
}
Answer: this.skip() worked without array function
4 Views