(REST) Help, I do not understand why I.haveRequestHeaders does not work

I try to add fields to the header: I.haveRequestHeaders({auth: ‘1111111’});
, but the I.haveRequestHeaders method returns an error:

  • FAILURES:

    1. test something:
      I.haveRequestHeaders is not a function

is it your custom function - I.haveRequestHeaders ?
As per the REST doc, it should be
I.sendGetRequest(‘/api/users.json’,“headers”:{“Accept”:“application/json”});

Understood, but don’t know how to pass an external variable to the executeScript method?

@avishek @Tetris Do you have any idea on how can we send request headers for GraphQL api through I.sendMutation() or I.sendQuery() methods?