https://cypress.io logo
Hello, does anyone have a clue how to help me here...
# e2e-testing
f
Hello, does anyone have a clue how to help me here?
Copy code
js
  it('Should open widget and do a preflight', () => {
    cy.get('[data-cy="twilio-widget"]').click({ force: true })
    cy.intercept(
      'GET',
      `https://INSERTURLHERE/token`,
      (req) => {
        const parsedToken = twilioVoiceEntity(req.body.token)
        const preflightTest = Device.runPreflight(parsedToken)

        preflightTest.on('completed', (report) => {
          console.log('report', report)
        })
      },
    )
  })
I want to see the console log of the report in cypress and then assert if the test failed or passes.