@ministryofjustice/hmpps-probation-integration-e2e-tests 1.230.0 → 1.231.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.230.0",
4
+ "version": "1.231.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/ministryofjustice/hmpps-probation-integration-e2e-tests#readme",
7
7
  "bugs": {
@@ -1,7 +1,7 @@
1
1
  import { NextMonth, Tomorrow } from "../delius/utils/date-time.mjs";
2
- import { splitDate } from "../common/common.mjs";
3
2
  import { selectApprovedPremises } from "./approved-premises-home.mjs";
4
3
  import { selectCreatePlacementAction } from "./approved-premises.mjs";
4
+ import { splitDate } from "../common/common.mjs";
5
5
  import { login, navigateToApplications } from "./login.mjs";
6
6
  import { submitAPApplication } from "./applications/submit-application-full.mjs";
7
7
  import { searchOffenderWithCrn } from "./create-placement.mjs";
@@ -25,8 +25,9 @@ const allocateCase = async (page, crn, allocation) => {
25
25
  await refreshUntil(page, () => expect(page).toHaveTitle(/Review allocation notes/));
26
26
  await page.fill("#instructions", `${allocation.staff.firstName} ${allocation.staff.lastName} is allocated on case with ${crn}. Allocation for ${crn} completed by hmpps-end-to-end-tests`);
27
27
  await page.getByRole("button", { name: "Continue" }).click();
28
- await expect(page).toHaveURL(/spo-oversight-contact-option$/);
29
- await page.getByRole("button", { name: "Save my notes without editing" }).click();
28
+ await page.getByRole("button", { name: "Allocate case" }).click();
29
+ await expect(page).toHaveURL(/allocation-complete$/);
30
+ await expect(page.locator("h1.govuk-panel__title ")).toContainText("Case allocated");
30
31
  };
31
32
  const selectTeam = async (page, team) => {
32
33
  await page.getByRole("combobox", { name: "Probation delivery unit (PDU)" }).selectOption({ label: team.probationDeliveryUnit });