@ministryofjustice/hmpps-probation-integration-e2e-tests 1.227.0 → 1.229.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.
|
|
4
|
+
"version": "1.229.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/ministryofjustice/hmpps-probation-integration-e2e-tests#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -132,15 +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
|
-
await page.getByRole("button", { name: /Post-programme reviews/ }).click();
|
|
142
135
|
await page.getByRole("link", { name: `${person.firstName} ${person.lastName}` }).click();
|
|
143
|
-
await expect(page.locator("h1.govuk-
|
|
136
|
+
await expect(page.locator("h1.govuk-heading-l")).toContainText(`${person.firstName} ${person.lastName}: Post-programme review`);
|
|
144
137
|
await page.getByRole("button", { name: "Update attendance and notes" }).click();
|
|
145
138
|
await expect(page.locator(".govuk-caption-l")).toContainText("Record attendance and progress");
|
|
146
139
|
await expect(page.locator("h1.govuk-heading-l")).toContainText(`Did ${person.firstName} ${person.lastName} attend Post-programme review?`);
|