@open-xchange/appsuite-codeceptjs 0.3.0 → 0.4.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/README.md +1 -34
- package/index.js +1 -1
- package/package.json +17 -17
- package/src/helper.js +2 -0
- package/src/soap/services/context.js +1 -1
package/README.md
CHANGED
|
@@ -4,37 +4,4 @@ This module contains appsuite specific configuration, helpers, page objects and
|
|
|
4
4
|
|
|
5
5
|
## Configuration
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// inside codecept.conf.js
|
|
10
|
-
|
|
11
|
-
module.exports.config = {
|
|
12
|
-
'helpers': {
|
|
13
|
-
// other helpers...
|
|
14
|
-
AppSuite: {
|
|
15
|
-
require: './node_modules/@open-xchange/appsuite-codeceptjs/src/helper',
|
|
16
|
-
// AppSuite helpers and actors rely on users array provided via config
|
|
17
|
-
users: [{
|
|
18
|
-
username: 'testuser1',
|
|
19
|
-
password: 'ultimatelySecure',
|
|
20
|
-
mail: 'testuser1@example.com'
|
|
21
|
-
}]
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
'include': {
|
|
25
|
-
'I': './node_modules/@open-xchange/appsuite-codeceptjs/src/actor'
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
If you want to have other actor functions bound to the I object, you can extend our actor in another file as follows:
|
|
30
|
-
|
|
31
|
-
// inside actor.js
|
|
32
|
-
|
|
33
|
-
module.exports = function () {
|
|
34
|
-
const {actor} = require('@open-xchange/appsuite-codeceptjs');
|
|
35
|
-
return actor({
|
|
36
|
-
customFunction: function () {
|
|
37
|
-
// do custom stuff
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
};
|
|
7
|
+
TBD
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-xchange/appsuite-codeceptjs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "OX App Suite CodeceptJS Configuration and Helpers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"e2e-rerun": "./customRerun.js"
|
|
8
8
|
},
|
|
9
|
-
"repository": "https://gitlab.open-xchange.com/
|
|
9
|
+
"repository": "https://gitlab.open-xchange.com/appsuite/web-foundation/tools.git",
|
|
10
10
|
"license": "AGPL-3.0-or-later",
|
|
11
11
|
"private": false,
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@axe-core/playwright": "^4.
|
|
14
|
-
"@codeceptjs/helper": "^2.0.
|
|
13
|
+
"@axe-core/playwright": "^4.9.1",
|
|
14
|
+
"@codeceptjs/helper": "^2.0.4",
|
|
15
15
|
"@influxdata/influxdb-client": "^1.33.2",
|
|
16
16
|
"@open-xchange/codecept-horizontal-scaler": "^0.1.7",
|
|
17
|
-
"@playwright/test": "1.44.
|
|
18
|
-
"allure-codeceptjs": "
|
|
19
|
-
"chai": "^5.1.
|
|
17
|
+
"@playwright/test": "1.44.1",
|
|
18
|
+
"allure-codeceptjs": "3.0.0-beta.3",
|
|
19
|
+
"chai": "^5.1.1",
|
|
20
20
|
"chai-subset": "^1.6.0",
|
|
21
21
|
"chalk": "^4.1.0",
|
|
22
22
|
"chalk-table": "^1.0.2",
|
|
23
|
-
"codeceptjs": "3.6.
|
|
24
|
-
"dotenv": "^16.4.
|
|
25
|
-
"mocha": "^10.
|
|
23
|
+
"codeceptjs": "3.6.3",
|
|
24
|
+
"dotenv": "^16.4.5",
|
|
25
|
+
"mocha": "^10.4.0",
|
|
26
26
|
"mocha-junit-reporter": "^2.2.1",
|
|
27
27
|
"mocha-multi": "^1.1.7",
|
|
28
28
|
"moment": "^2.30.1",
|
|
29
|
-
"moment-timezone": "^0.5.
|
|
29
|
+
"moment-timezone": "^0.5.45",
|
|
30
30
|
"p-retry": "^6.2.0",
|
|
31
|
-
"playwright-core": "1.44.
|
|
32
|
-
"short-uuid": "^5.
|
|
33
|
-
"soap": "^1.0.
|
|
31
|
+
"playwright-core": "1.44.1",
|
|
32
|
+
"short-uuid": "^5.2.0",
|
|
33
|
+
"soap": "^1.0.3"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@types/node": "^20.
|
|
36
|
+
"@types/node": "^20.14.2",
|
|
37
37
|
"ts-node": "^10.9.2",
|
|
38
|
-
"typescript": "^5.
|
|
38
|
+
"typescript": "^5.4.5"
|
|
39
39
|
},
|
|
40
40
|
"pnpm": {
|
|
41
41
|
"updateConfig": {
|
|
@@ -44,4 +44,4 @@
|
|
|
44
44
|
]
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
}
|
|
47
|
+
}
|
package/src/helper.js
CHANGED
|
@@ -544,6 +544,8 @@ class AppSuiteHelper extends Helper {
|
|
|
544
544
|
|
|
545
545
|
if (appointment.startDate?.value?._isAMomentObject) appointment.startDate.value = appointment.startDate.value.format('YYYYMMDD[T]HHmmss')
|
|
546
546
|
if (appointment.endDate?.value?._isAMomentObject) appointment.endDate.value = appointment.endDate.value.format('YYYYMMDD[T]HHmmss')
|
|
547
|
+
if (appointment.startDate?.value?.isLuxonDateTime) appointment.startDate.value = appointment.startDate.value.toFormat("yyyyMMdd'T'HHmmss")
|
|
548
|
+
if (appointment.endDate?.value?.isLuxonDateTime) appointment.endDate.value = appointment.endDate.value.toFormat("yyyyMMdd'T'HHmmss")
|
|
547
549
|
|
|
548
550
|
if (appointment.startDate && !appointment.startDate.tzid) appointment.startDate.tzid = 'Europe/Berlin'
|
|
549
551
|
if (appointment.endDate && !appointment.endDate.tzid) appointment.endDate.tzid = 'Europe/Berlin'
|
|
@@ -134,7 +134,7 @@ async function changeModuleAccess (id, moduleAccess) {
|
|
|
134
134
|
* @param {Boolean} options.excludeDisabled Exclude disabled contexts from the search results (default: true)
|
|
135
135
|
* @returns {Promise<Array<Object>>} The list of contexts that match the search pattern.
|
|
136
136
|
*/
|
|
137
|
-
async function list (searchPattern, { excludeDisabled = true }) {
|
|
137
|
+
async function list (searchPattern, { excludeDisabled } = { excludeDisabled: true }) {
|
|
138
138
|
return await (await OXContextService).listAsync({ search_pattern: searchPattern, exclude_disabled: excludeDisabled })
|
|
139
139
|
}
|
|
140
140
|
|