class BarryApi{ static itemLists(requestUrl: str...
# e2e-testing
a
class BarryApi{ static itemLists(requestUrl: string): any { let itemList; const signatureHeaders = [ { name: 'override', value: 'hello_world' }, ]; cy.task('Signature', { pathToSign, headers: signatureHeaders }).then((signature) => { cy.request({ url: requestUrl, method: 'GET', headers: { 'signature': signature, }, failOnStatusCode: false, log: true, }) .then((response) => { cy.wrap(JSON.stringify(response.body)).as("itemList"); }); }); } } export default BarryApi;