@ministryofjustice/hmpps-probation-integration-e2e-tests 1.187.0 → 1.189.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.189.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/ministryofjustice/hmpps-probation-integration-e2e-tests#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as playwright_core0 from "playwright-core";
|
|
1
|
+
import * as _$playwright_core0 from "playwright-core";
|
|
2
2
|
|
|
3
3
|
//#region steps/api/arns/arns-api.d.ts
|
|
4
|
-
declare function getRisksFromArns(crn: string): Promise<playwright_core0.APIResponse>;
|
|
4
|
+
declare function getRisksFromArns(crn: string): Promise<_$playwright_core0.APIResponse>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { getRisksFromArns };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as playwright_core0 from "playwright-core";
|
|
1
|
+
import * as _$playwright_core0 from "playwright-core";
|
|
2
2
|
|
|
3
3
|
//#region steps/api/court-case/court-case-api.d.ts
|
|
4
|
-
declare function addCourtHearing(hearing: CourtHearing): Promise<playwright_core0.APIResponse>;
|
|
4
|
+
declare function addCourtHearing(hearing: CourtHearing): Promise<_$playwright_core0.APIResponse>;
|
|
5
5
|
interface CourtHearing {
|
|
6
6
|
hearing: {
|
|
7
7
|
jurisdictionType: string;
|
|
@@ -11,24 +11,14 @@ const recommendAPersonForRecall = async (page) => {
|
|
|
11
11
|
await page.getByRole("link", { name: /What has made you consider recalling [\w'-]+\s[\w'-]+\?/ }).click();
|
|
12
12
|
await page.locator("#triggerLeadingToRecall").fill("Test reason - Binge Drinking is the reason for recalling");
|
|
13
13
|
await page.getByRole("button", { name: "Continue" }).click();
|
|
14
|
-
await page.getByRole("link", { name: /How has [\w'-]+\s[\w'-]+ responded to probation so far\?/ }).click();
|
|
15
|
-
await expect(page.locator("#main-content h1")).toContainText(/How has [\w'-]+\s[\w'-]+ responded to probation so far\?/);
|
|
16
|
-
await page.locator("#responseToProbation").fill("Test Response - Not responded quite well");
|
|
17
|
-
await page.getByRole("button", { name: "Continue" }).click();
|
|
18
|
-
await page.getByRole("link", { name: /What licence conditions has [\w'-]+\s[\w'-]+ breached\?/ }).click();
|
|
19
14
|
await expect(page.locator("#main-content h1")).toContainText(/What licence conditions has [\w'-]+\s[\w'-]+ breached\?/);
|
|
20
15
|
await page.locator("#licenceConditionsBreached").check();
|
|
21
16
|
await page.getByRole("button", { name: "Continue" }).click();
|
|
22
|
-
await page.getByRole("link", { name: "What alternatives to recall have been tried already?" }).click();
|
|
23
17
|
await expect(page.locator("#main-content h1")).toContainText("What alternatives to recall have been tried already?");
|
|
24
18
|
await page.locator("#alternativesToRecallTried").check();
|
|
25
19
|
await page.getByRole("button", { name: "Continue" }).click();
|
|
26
|
-
await page.
|
|
27
|
-
await
|
|
28
|
-
await page.locator("#isIndeterminateSentence-2").check();
|
|
29
|
-
await page.getByRole("button", { name: "Continue" }).click();
|
|
30
|
-
await expect(page.locator("#main-content h1")).toContainText(/Is [\w'-]+\s[\w'-]+ on an extended sentence\?/);
|
|
31
|
-
await page.locator("#isExtendedSentence-2").check();
|
|
20
|
+
await expect(page.locator("legend")).toContainText(/Which sentence group does [\w'-]+\s[\w'-]+ sentence type fall into\?/);
|
|
21
|
+
await page.locator("#sentenceGroup").check();
|
|
32
22
|
await page.getByRole("button", { name: "Continue" }).click();
|
|
33
23
|
await page.getByRole("button", { name: "Continue" }).click();
|
|
34
24
|
await expect(page.locator("h1[class=\"govuk-fieldset__heading\"]")).toContainText("Record the consideration in NDelius");
|