@ministryofjustice/hmpps-probation-integration-e2e-tests 1.152.0 → 1.153.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.153.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/ministryofjustice/hmpps-probation-integration-e2e-tests#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -10,9 +10,8 @@ async function internalTransfer(page, { crn, allocation, reason = "Initial Alloc
|
|
|
10
10
|
await selectOption(page, "#Trust\\:selectOneMenu", allocation?.team?.provider);
|
|
11
11
|
await selectOption(page, "#Team\\:selectOneMenu", allocation?.team?.name);
|
|
12
12
|
const selectedStaff = await selectOption(page, "#Staff\\:selectOneMenu", allocation?.staff?.name);
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
for (let i = 0; i < count; i++) await options.nth(i).selectOption({ label: reason });
|
|
13
|
+
const count = await page.locator("#offenderTransferRequestTable select").count();
|
|
14
|
+
for (let i = 0; i < count; i++) await selectOption(page, `:nth-match(#offenderTransferRequestTable select, ${i + 1})`, reason);
|
|
16
15
|
await page.locator("input", { hasText: "Transfer" }).click();
|
|
17
16
|
await expect(page).toHaveTitle(/Consolidated Transfer Request/);
|
|
18
17
|
return selectedStaff;
|