@ministryofjustice/hmpps-probation-integration-e2e-tests 1.228.0 → 1.230.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.228.0",
4
+ "version": "1.230.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/ministryofjustice/hmpps-probation-integration-e2e-tests#readme",
7
7
  "bugs": {
@@ -132,14 +132,8 @@ async function createPostProgrammeReviewSession(page, person) {
132
132
  await expect(page.locator(".moj-alert__content")).toContainText(`Post-programme review for ${person.firstName} ${person.lastName} has been added.`);
133
133
  }
134
134
  async function recordPostProgrammeSessionAttendance(page, person) {
135
- await page.getByRole("link", { name: "Groups" }).click();
136
- await page.getByRole("link", { name: "AutoTestGroup" }).click();
137
- await page.getByRole("link", {
138
- name: "Sessions and attendance",
139
- exact: true
140
- }).click();
141
135
  await page.getByRole("link", { name: `${person.firstName} ${person.lastName}` }).click();
142
- await expect(page.locator("h1.govuk-fieldset__heading")).toContainText(`${person.firstName} ${person.lastName}: Post programme review`);
136
+ await expect(page.locator("h1.govuk-heading-l")).toContainText(`${person.firstName} ${person.lastName}: Post-programme review`);
143
137
  await page.getByRole("button", { name: "Update attendance and notes" }).click();
144
138
  await expect(page.locator(".govuk-caption-l")).toContainText("Record attendance and progress");
145
139
  await expect(page.locator("h1.govuk-heading-l")).toContainText(`Did ${person.firstName} ${person.lastName} attend Post-programme review?`);
@@ -1,7 +1,7 @@
1
1
  import { NextMonth, Tomorrow } from "../delius/utils/date-time.mjs";
2
+ import { splitDate } from "../common/common.mjs";
2
3
  import { selectApprovedPremises } from "./approved-premises-home.mjs";
3
4
  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";