Ejemplo n.º 1
0
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();
};
Ejemplo n.º 2
0
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);
};