@ministryofjustice/hmpps-probation-integration-e2e-tests 1.157.0 → 1.158.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.157.0",
4
+ "version": "1.158.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/ministryofjustice/hmpps-probation-integration-e2e-tests#readme",
7
7
  "bugs": {
@@ -17,7 +17,8 @@
17
17
  "dependencies": {
18
18
  "@faker-js/faker": "^10.0.0",
19
19
  "@kubernetes/client-node": "^1.0.0",
20
- "@playwright/test": "1.57.0",
20
+ "@playwright/test": "1.58.0",
21
+ "playwright-core": "1.58.0",
21
22
  "luxon": "^3.5.0",
22
23
  "node-stream-zip": "^1.15.0",
23
24
  "pdf2json": "^4.0.0"
@@ -29,8 +30,8 @@
29
30
  "@typescript-eslint/parser": "^8.0.1",
30
31
  "eslint-config-prettier": "^10.0.1",
31
32
  "eslint-plugin-prettier": "^5.2.1",
32
- "prettier": "3.8.0",
33
- "tsdown": "^0.19.0"
33
+ "prettier": "3.8.1",
34
+ "tsdown": "^0.20.1"
34
35
  },
35
36
  "exports": {
36
37
  "./steps/accredited-programmes/application": "./steps/accredited-programmes/application.mjs",
@@ -25,7 +25,7 @@ const doUntil = async (action, expectation, options = {
25
25
  }).toPass(options);
26
26
  };
27
27
  const waitForJS = (page, timeout = 0) => {
28
- const timeToWait = (timeout$1) => new Promise((resolve) => setTimeout(resolve, timeout$1));
28
+ const timeToWait = (timeout) => new Promise((resolve) => setTimeout(resolve, timeout));
29
29
  return page.evaluate(timeToWait, timeout);
30
30
  };
31
31
  const waitForAjax = async (page) => {
@@ -1,7 +1,6 @@
1
1
  import { V1EnvVar } from "@kubernetes/client-node";
2
2
 
3
3
  //#region steps/k8s/k8s-utils.d.ts
4
-
5
4
  /**
6
5
  * Get the name of the first pod in a deployment
7
6
  * @param namespace
@@ -9,7 +9,7 @@ declare enum UserType {
9
9
  Assessment = 3,
10
10
  OPD = 4,
11
11
  ApprovedPSORole = 5,
12
- AccreditedProgrammesAssessment = 6,
12
+ AccreditedProgrammesAssessment = 6
13
13
  }
14
14
  //#endregion
15
15
  export { UserType, login };
@@ -9,15 +9,15 @@ const login = async (page, userType) => {
9
9
  await page.fill("#P101_PASSWORD", password);
10
10
  await page.click("#P101_LOGIN_BTN");
11
11
  };
12
- let UserType = /* @__PURE__ */ function(UserType$1) {
13
- UserType$1[UserType$1["Booking"] = 0] = "Booking";
14
- UserType$1[UserType$1["Timeline"] = 1] = "Timeline";
15
- UserType$1[UserType$1["RSR"] = 2] = "RSR";
16
- UserType$1[UserType$1["Assessment"] = 3] = "Assessment";
17
- UserType$1[UserType$1["OPD"] = 4] = "OPD";
18
- UserType$1[UserType$1["ApprovedPSORole"] = 5] = "ApprovedPSORole";
19
- UserType$1[UserType$1["AccreditedProgrammesAssessment"] = 6] = "AccreditedProgrammesAssessment";
20
- return UserType$1;
12
+ let UserType = /* @__PURE__ */ function(UserType) {
13
+ UserType[UserType["Booking"] = 0] = "Booking";
14
+ UserType[UserType["Timeline"] = 1] = "Timeline";
15
+ UserType[UserType["RSR"] = 2] = "RSR";
16
+ UserType[UserType["Assessment"] = 3] = "Assessment";
17
+ UserType[UserType["OPD"] = 4] = "OPD";
18
+ UserType[UserType["ApprovedPSORole"] = 5] = "ApprovedPSORole";
19
+ UserType[UserType["AccreditedProgrammesAssessment"] = 6] = "AccreditedProgrammesAssessment";
20
+ return UserType;
21
21
  }({});
22
22
  const oasysUserConfig = (userType) => {
23
23
  switch (userType) {