@ministryofjustice/hmpps-probation-integration-e2e-tests 1.202.0 → 1.203.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ministryofjustice/hmpps-probation-integration-e2e-tests",
3
3
  "description": "Playwright end to end tests for hmpps-probation-integration-services.",
4
- "version": "1.202.0",
4
+ "version": "1.203.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/ministryofjustice/hmpps-probation-integration-e2e-tests#readme",
7
7
  "bugs": {
@@ -26,6 +26,9 @@ async function registerCaseInMPoP(page, person, crn) {
26
26
  await expect(heading).toContainText(new RegExp(`${person.firstName} is eligible to use online check ins`, "i"));
27
27
  await page.getByRole("radio", { name: "To replace some face-to-face" }).click();
28
28
  await page.getByRole("button", { name: "Sign up for online check ins" }).click();
29
+ await expect(heading).toContainText(new RegExp(`Check you've got approval before you sign ${person.firstName} up`, "i"));
30
+ await page.locator("input[value=\"spo-approval\"]").check();
31
+ await page.getByRole("button", { name: "Continue" }).click();
29
32
  await expect(heading).toContainText(/Set up\s+online check ins/i);
30
33
  await page.locator(".moj-js-datepicker-input").fill(uiDueDate);
31
34
  await page.getByRole("radio", { name: "Every 2 weeks" }).check();
@@ -59,9 +62,7 @@ async function createCheckin(page, uuid, person) {
59
62
  await page.getByRole("button", { name: "Continue" }).click();
60
63
  await page.getByRole("radio", { name: "Very well" }).check();
61
64
  await page.getByRole("button", { name: "Continue" }).click();
62
- await page.getByRole("checkbox", { name: "No, I do not need help" }).check();
63
- await page.getByRole("button", { name: "Continue" }).click();
64
- await page.getByRole("radio", { name: "No" }).check();
65
+ await page.getByRole("checkbox", { name: "No, I do not need any support" }).check();
65
66
  await page.getByRole("button", { name: "Continue" }).click();
66
67
  await page.getByRole("button", { name: "Continue" }).click();
67
68
  await page.getByRole("button", { name: "Start recording" }).click();