@ministryofjustice/hmpps-probation-integration-e2e-tests 1.229.0 → 1.231.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.231.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/ministryofjustice/hmpps-probation-integration-e2e-tests#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -25,8 +25,9 @@ const allocateCase = async (page, crn, allocation) => {
|
|
|
25
25
|
await refreshUntil(page, () => expect(page).toHaveTitle(/Review allocation notes/));
|
|
26
26
|
await page.fill("#instructions", `${allocation.staff.firstName} ${allocation.staff.lastName} is allocated on case with ${crn}. Allocation for ${crn} completed by hmpps-end-to-end-tests`);
|
|
27
27
|
await page.getByRole("button", { name: "Continue" }).click();
|
|
28
|
-
await
|
|
29
|
-
await page
|
|
28
|
+
await page.getByRole("button", { name: "Allocate case" }).click();
|
|
29
|
+
await expect(page).toHaveURL(/allocation-complete$/);
|
|
30
|
+
await expect(page.locator("h1.govuk-panel__title ")).toContainText("Case allocated");
|
|
30
31
|
};
|
|
31
32
|
const selectTeam = async (page, team) => {
|
|
32
33
|
await page.getByRole("combobox", { name: "Probation delivery unit (PDU)" }).selectOption({ label: team.probationDeliveryUnit });
|