@ministryofjustice/hmpps-probation-integration-e2e-tests 1.221.0 → 1.222.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.222.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/ministryofjustice/hmpps-probation-integration-e2e-tests#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -77,7 +77,7 @@ async function findAnIndividualPlacement(page, provider, teamName) {
|
|
|
77
77
|
await selectOption(page, "#provider", provider);
|
|
78
78
|
await selectOption(page, "#team", teamName);
|
|
79
79
|
await page.getByRole("button", { name: "Apply filters" }).click();
|
|
80
|
-
await page.
|
|
80
|
+
await page.getByRole("link", { name: "Heartline Research Northfield" }).click();
|
|
81
81
|
await page.getByRole("link", { name: "Update" }).first().click();
|
|
82
82
|
const crn = await page.locator(".govuk-caption-l").textContent();
|
|
83
83
|
await expect(page.locator("h2.govuk-heading-m")).toContainText("Appointment details");
|
|
@@ -91,8 +91,8 @@ async function findAnAppointment(page, provider) {
|
|
|
91
91
|
await page.getByRole("link", { name: "Adjust travel time hours" }).click();
|
|
92
92
|
await selectOption(page, "#provider", provider);
|
|
93
93
|
await page.getByRole("button", { name: "Apply filters" }).click();
|
|
94
|
-
const crn = await page.locator("//tbody/tr[
|
|
95
|
-
await page.getByRole("link", { name: "Update" }).
|
|
94
|
+
const crn = await page.locator("//tbody/tr[4]/td[2]").textContent();
|
|
95
|
+
await page.getByRole("link", { name: "Update" }).nth(3).click();
|
|
96
96
|
return crn;
|
|
97
97
|
}
|
|
98
98
|
async function recordSessionAttendance(page, startTime, endTime) {
|