@ministryofjustice/hmpps-probation-integration-e2e-tests 1.210.0 → 1.211.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.211.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/ministryofjustice/hmpps-probation-integration-e2e-tests#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -212,7 +212,9 @@ async function enterPlacementConsiderations(page) {
|
|
|
212
212
|
await page.locator("#riskToPublic").fill("Risk to public details");
|
|
213
213
|
await page.locator("#riskToKnownAdult").fill("Risk to known adult details");
|
|
214
214
|
await page.locator("#riskToStaff").fill("Risk to staff details");
|
|
215
|
+
await page.locator("input[name=\"riskToSelfConcerns\"][value=\"no\"]").click();
|
|
215
216
|
await page.locator("#riskToSelf").fill("Risk to self details");
|
|
217
|
+
await page.locator("input[name=\"safetyPlanCompleted\"][value=\"yesAndConsentToShareHasBeenGiven\"]").click();
|
|
216
218
|
await page.getByRole("button", { name: "Next" }).click();
|
|
217
219
|
await expect(page).toHaveTitle("Risk management plan - CAS3");
|
|
218
220
|
await page.getByRole("textbox", { name: "Victim safety planning" }).fill("Victim safety planning details");
|
|
@@ -42,6 +42,7 @@ async function createEvent(page, { crn, allocation, event, date }) {
|
|
|
42
42
|
await selectOption(page, "#OutcomeArea\\:selectOneMenu", allocation?.team?.provider);
|
|
43
43
|
await selectOption(page, "#OutcomeTeam\\:selectOneMenu", allocation?.team?.name);
|
|
44
44
|
}
|
|
45
|
+
if (event.appearanceType === "Sentence") await selectOption(page, "#jfda\\:selectOneMenu", "No");
|
|
45
46
|
if (event.length) await page.fill("#Length", event.length);
|
|
46
47
|
if (event.reportType) {
|
|
47
48
|
await selectOption(page, "#Report\\:selectOneMenu", event.reportType);
|