@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.
|
|
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.
|
|
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.
|
|
33
|
-
"tsdown": "^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
|
|
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) => {
|
package/steps/oasys/login.d.mts
CHANGED
package/steps/oasys/login.mjs
CHANGED
|
@@ -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
|
|
13
|
-
UserType
|
|
14
|
-
UserType
|
|
15
|
-
UserType
|
|
16
|
-
UserType
|
|
17
|
-
UserType
|
|
18
|
-
UserType
|
|
19
|
-
UserType
|
|
20
|
-
return UserType
|
|
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) {
|