@open-xchange/appsuite-codeceptjs 0.6.20 → 0.7.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.
@@ -1 +1 @@
1
- FROM registry.gitlab.com/openxchange/appsuite/web-foundation/base-images/playwright:v1.58.2-noble
1
+ FROM registry.gitlab.com/openxchange/base-images/wolfi/playwright:1.58.2
package/index.js CHANGED
@@ -25,6 +25,8 @@ const pageobjects = require('@open-xchange/appsuite-codeceptjs-pageobjects')
25
25
  const dotenv = require('dotenv')
26
26
  dotenv.config({ path: ['.env', '.env.defaults'], quiet: true })
27
27
 
28
+ const outputDir = process.env.E2E_OUTPUT_DIR || './output'
29
+
28
30
  const requiredEnvVars = ['LAUNCH_URL', 'PROVISIONING_URL']
29
31
 
30
32
  requiredEnvVars.forEach(function notdefined (key) {
@@ -42,7 +44,7 @@ module.exports = {
42
44
  config: {
43
45
  tests: './tests/**/*_test.js',
44
46
  timeout: Number(process.env.TEST_TIMEOUT) || 120,
45
- output: './output/',
47
+ output: outputDir,
46
48
  helpers: {
47
49
  Playwright: {
48
50
  timeout: 10000,
@@ -129,7 +131,7 @@ module.exports = {
129
131
  stdout: '-',
130
132
  options: {
131
133
  jenkinsMode: true,
132
- mochaFile: './output/junit.xml',
134
+ mochaFile: `${outputDir}/junit.xml`,
133
135
  attachments: false // add screenshot for a failed test
134
136
  }
135
137
  }
@@ -139,7 +141,7 @@ module.exports = {
139
141
  allure: {
140
142
  enabled: true,
141
143
  require: 'allure-codeceptjs',
142
- outputDir: './output'
144
+ outputDir
143
145
  // This will change to the below once the allure plugin is updated to >= 3.0.0
144
146
  // At the time of writing, the allure plugin is at 3.0.0-beta.3 and screenshots are not working
145
147
  // resultsDir: './output'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-xchange/appsuite-codeceptjs",
3
- "version": "0.6.20",
3
+ "version": "0.7.0",
4
4
  "description": "OX App Suite CodeceptJS Configuration and Helpers",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1,9 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(find:*)",
5
- "Bash(grep:*)",
6
- "Bash(npm view:*)"
7
- ]
8
- }
9
- }