@ministryofjustice/hmpps-probation-integration-e2e-tests 1.137.0 → 1.139.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.137.0",
4
+ "version": "1.139.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/ministryofjustice/hmpps-probation-integration-e2e-tests#readme",
7
7
  "bugs": {
@@ -29,8 +29,8 @@
29
29
  "@typescript-eslint/parser": "^8.0.1",
30
30
  "eslint-config-prettier": "^10.0.1",
31
31
  "eslint-plugin-prettier": "^5.2.1",
32
- "prettier": "3.7.3",
33
- "tsdown": "^0.16.1"
32
+ "prettier": "3.7.4",
33
+ "tsdown": "^0.17.1"
34
34
  },
35
35
  "exports": {
36
36
  "./steps/accredited-programmes/application": "./steps/accredited-programmes/application.mjs",
@@ -25,7 +25,7 @@ async function submitApplication(page, nomisId) {
25
25
  }
26
26
  async function startApplication(page) {
27
27
  await page.getByRole("link", { name: "Start a new application" }).click();
28
- await expect(page).toHaveTitle("Home - Short-Term Accommodation (CAS-2)");
28
+ await expect(page).toHaveTitle("Home - CAS2 for HDC - short-term accommodation");
29
29
  await page.getByRole("button", { name: "Start now" }).click();
30
30
  await expect(page).toHaveTitle(/Enter the person's prison number/);
31
31
  }
@@ -44,7 +44,7 @@ async function confirmEligibilityAndConsent(page) {
44
44
  await page.getByLabel(/Yes/).check();
45
45
  await fillDateInput(page, "When did they give consent?");
46
46
  await page.getByRole("button", { name: "Save and continue" }).click();
47
- await expect(page).toHaveTitle("The person's Home Detention Curfew (HDC) licence dates - Short-Term Accommodation (CAS-2)");
47
+ await expect(page).toHaveTitle("The person's Home Detention Curfew (HDC) licence dates - CAS2 for HDC - short-term accommodation");
48
48
  if (await fillDateInput(page, "HDC eligibility date", 1) >= await fillDateInput(page, "conditional release date", 2)) throw new Error("HDC eligibility date must be before the conditional release date.");
49
49
  await page.getByRole("button", { name: "Save and continue" }).click();
50
50
  await expect(page).toHaveTitle(/Task list/);
@@ -217,7 +217,7 @@ async function riskToOthers(page) {
217
217
  await expect(page).toHaveTitle(/Does the person have an older OASys with risk of serious harm \(RoSH\) information/);
218
218
  await page.getByLabel("No").check();
219
219
  await page.getByRole("button", { name: "Save and continue" }).click();
220
- await expect(page).toHaveTitle(/Create a RoSH summary for this person - Short-Term Accommodation \(CAS-2\)/);
220
+ await expect(page).toHaveTitle(/Create a RoSH summary for this person - CAS2 for HDC - short-term accommodation/);
221
221
  await page.getByRole("group", { name: "What risk do they pose to children?" }).getByLabel("Low").check();
222
222
  await page.getByRole("group", { name: "What risk do they pose to the public?" }).getByLabel("Medium").check();
223
223
  await page.getByRole("group", { name: "What risk do they pose to a known adult?" }).getByLabel("Medium").check();
@@ -23,7 +23,7 @@ const createLicence = async (page, crn, nomsNumber) => {
23
23
  await page.getByLabel(/Postcode/).fill(faker.location.zipCode());
24
24
  await page.getByRole("button", { name: "Continue" }).click();
25
25
  await expect(page).toHaveTitle("Create and vary a licence - Create a licence - What is the contact phone number for the initial appointment?");
26
- await page.getByLabel("UK telephone number").first().fill(cvlFormattedPhoneNumber());
26
+ await page.getByLabel("UK phone number").first().fill(cvlFormattedPhoneNumber());
27
27
  await page.getByRole("button", { name: "Continue" }).click();
28
28
  await expect(page).toHaveTitle("Create and vary a licence - Create a licence - When is the initial appointment?");
29
29
  await page.getByLabel(/Immediately after release/).check();
@@ -43,7 +43,7 @@ async function createCheckin(page, uuid, person) {
43
43
  await page.getByRole("button", { name: "Continue" }).click();
44
44
  await page.getByRole("button", { name: "Continue" }).click();
45
45
  await page.getByRole("button", { name: "Start recording" }).click();
46
- await page.getByRole("button", { name: "Submit video anyway" }).click();
46
+ await page.getByRole("button", { name: "Continue" }).click();
47
47
  await page.getByRole("checkbox", { name: /I confirm/ }).check();
48
48
  await page.getByRole("button", { name: "Complete check in" }).click();
49
49
  await expect(page.locator("h1")).toContainText("Check in completed");
@@ -6,6 +6,7 @@ const referToSOC = async (page, crn) => {
6
6
  await page.getByLabel("CRN").fill(crn);
7
7
  await page.getByRole("button", { name: "Search" }).click();
8
8
  await page.getByRole("link", { name: "Add nominal to SOC" }).click();
9
+ await page.getByRole("radio", { name: "Preselection" }).check();
9
10
  await page.getByLabel("Reason for referral or inclusion").fill("Automated testing");
10
11
  await page.getByRole("button", { name: "Save and continue" }).click();
11
12
  await page.getByLabel("Directorate of Security (DoS").selectOption("North West and West Midlands");