Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

cypress custom error message

it('fails with custom message via overwrite of should', () => {
    cy.wrap(1).should('eq', 1, { message: 'custom error message 1'})
    cy.wrap(1).should('eq', 2, { message: 'custom error message 2'})
  })
Source by github.com #
 
PREVIOUS NEXT
Tagged: #cypress #custom #error #message
ADD COMMENT
Topic
Name
5+8 =