You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, seems I can't find these for the preprocessor, might be me who can't search properly.
Basically I would like to be able to do some tracability for my tests when they are running against the backend, where I would like to attach the feature name and scenario name in the headers of cy.request (the BeforeStep is mostly for completeness).
So I'd like to be able to do:
letfeatureName: string=""letscenarioName: string=""BeforeFeature((event,callback)=>{featureName=event.getPayloadItem('feature')})// similar for ScenarioCypress.Commands.overwrite('request',function(originalFn, ...restParameters){if(restParameters.length===1){restParameters[0].headers['x-correlation-id']=`accept-test-${featureName}-${scenarioName}`}returnoriginalFn.apply(this,restParameters)})
The text was updated successfully, but these errors were encountered:
Hey, seems I can't find these for the preprocessor, might be me who can't search properly.
Basically I would like to be able to do some tracability for my tests when they are running against the backend, where I would like to attach the feature name and scenario name in the headers of
cy.request
(theBeforeStep
is mostly for completeness).So I'd like to be able to do:
The text was updated successfully, but these errors were encountered: