const getAgent = step => { return custom(step) .withCookie('mockIdamUserDetails', JSON.stringify(userDetails)) .withGlobal('feedbackLink', 'https://github.com/hmcts/one-per-page/issues/new') .withSession({ case: { data: {} } }) .asServer(); };
const stepHtml = step => { return custom(step) .withSession(Object.assign({ entryPoint: step.name }, { case: cosMockCase })) .withCookie('mockIdamUserDetails', JSON.stringify(userDetails)) .get() .expect(httpStatus.OK) .text(html => html); };