vendredi 22 février 2019

How to modify HTTP headers in Cypress

I want to modify HTTP header like adding x-MSISDN and user-agent

I tried below code

describe('The Home Page', function() {

  it('successfully loads', function() {

cy.server({
  headers: {
    'x-msisdn': '7845851265'
  }
})


  })
})

Aucun commentaire:

Enregistrer un commentaire