Skip to content

Load HTML string #14197

Dec 16, 2020 · 1 comments · 10 replies
Discussion options

You must be logged in to vote

You can skip logging them

cy.request('/').its('body', {log: false})
  .then(text => {
    if (!text.includes(somestring)) {
      throw new Error('Text does not have the expected string')
    }
  })

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@stychu
Comment options

@OmarSlame
Comment options

@bahmutov
Comment options

@jprealini
Comment options

@OmarSlame
Comment options

Answer selected by bahmutov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants