@ministryofjustice/hmpps-probation-integration-e2e-tests 1.151.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.151.0",
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": {
@@ -29,7 +29,7 @@
29
29
  "@typescript-eslint/parser": "^8.0.1",
30
30
  "eslint-config-prettier": "^10.0.1",
31
31
  "eslint-plugin-prettier": "^5.2.1",
32
- "prettier": "3.7.4",
32
+ "prettier": "3.8.0",
33
33
  "tsdown": "^0.19.0"
34
34
  },
35
35
  "exports": {
@@ -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 options = await page.locator("#offenderTransferRequestTable").locator("select");
14
- const count = await options.count();
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;