@ministryofjustice/hmpps-probation-integration-e2e-tests 1.140.0 → 1.141.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.140.0",
4
+ "version": "1.141.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/ministryofjustice/hmpps-probation-integration-e2e-tests#readme",
7
7
  "bugs": {
@@ -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 - CAS2 for HDC - short-term accommodation");
28
+ await expect(page).toHaveTitle("Home - CAS2 for HDC");
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 - CAS2 for HDC - short-term accommodation");
47
+ await expect(page).toHaveTitle("The person's Home Detention Curfew (HDC) licence dates - CAS2 for HDC");
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 - CAS2 for HDC - short-term accommodation/);
220
+ await expect(page).toHaveTitle(/Create a RoSH summary for this person - CAS2 for HDC/);
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();
@@ -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: "Continue" }).click();
46
+ await page.getByRole("button", { name: /Submit video anyway/ }).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");