@camunda/e2e-test-suite 0.0.30 → 0.0.32

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.
Files changed (2) hide show
  1. package/README.md +27 -16
  2. package/package.json +9 -4
package/README.md CHANGED
@@ -81,29 +81,40 @@ For C8Run, a test run can be manually triggered for specific minor versions, for
81
81
 
82
82
  1. Clone the repository:
83
83
 
84
- ```bash
85
- git clone https://github.com/camunda/c8-cross-component-e2e-tests.git
86
- ```
84
+ ```bash
85
+ git clone https://github.com/camunda/c8-cross-component-e2e-tests.git
86
+ cd c8-cross-component-e2e-tests
87
+ ```
87
88
 
88
- 2. Install the dependencies:
89
+ 2. Install dependencies and auto-configure Vault CLI for Mac, Linux, and Windows:
89
90
 
90
- ```bash
91
- npm install
92
- npx playwright install
93
- ```
91
+ ```bash
92
+ npm install
93
+ npx playwright install
94
+ ```
95
+
96
+ - This will automatically download the correct Vault CLI for your system (Mac, Windows, Linux) into the `bin/` directory.
97
+ - No manual Vault CLI install or admin rights required.
98
+
99
+ 3. Create your `.env` file automatically:
100
+
101
+ ```bash
102
+ npm run setup
103
+ ```
94
104
 
95
- 3. Add Enviornmental Variables:
105
+ - When prompted, paste your Vault token from [vault.int.camunda.com/ui/vault/access](https://vault.int.camunda.com/ui/vault/access).
106
+ - The script fetches all necessary credentials and secrets, applies in-place transformations to the required email usernames, and generates your `.env` file in the project root.
96
107
 
97
- Create a .env file in the root of the project. Add the credentials found in [Keeper](https://keepersecurity.eu/vault/#)
108
+ 4. Set the following variables manually in `.env`:
98
109
 
99
- **Keeper location:**
100
- Shared → Engineering All → **C8 Cross Component E2E Test Suite Credentials**
110
+ After running `npm run setup`, open your `.env` file and fill these:
101
111
 
102
- > **Important:**
103
- > Keep the `.env` file private and **do not commit it** to version control.
104
- > The credentials stored in Keeper are shared across all of Engineering.
112
+ - `TASKLIST_VERSION` (Set to `v1` or `v2` for 8.8+)
113
+ - `PLAYWRIGHT_BASE_URL` (Base_url for Helm chart testing, or leave blank)
114
+ - `CLUSTER_VERSION` (Cluster version on INT to test, or leave blank)
115
+ - `MINOR_VERSION` (Minor version, e.g. `SM-8.8`, corresponds to the test folders in this repo)
105
116
 
106
- If you prefer to use your own credentials, follow the steps below.
117
+ The setup script will leave these blank and clearly mark them for manual
107
118
 
108
119
  **Setting up your own organization (optional)**
109
120
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,7 +21,9 @@
21
21
  "lint:fix": "eslint . --ext .ts --fix",
22
22
  "build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
23
23
  "clean": "rimraf dist",
24
- "prepack": "npm run clean && npm run build"
24
+ "prepack": "npm run clean && npm run build",
25
+ "setup": "ts-node setup.ts",
26
+ "prepare": "node download-vault.js"
25
27
  },
26
28
  "keywords": [],
27
29
  "author": "",
@@ -30,7 +32,7 @@
30
32
  "@inquirer/prompts": "^3.2.0",
31
33
  "@playwright/test": "^1.49.0",
32
34
  "@types/axios": "^0.14.0",
33
- "@types/node": "20.9.0",
35
+ "@types/node": "^20.9.0",
34
36
  "@typescript-eslint/eslint-plugin": "6.10.0",
35
37
  "@typescript-eslint/parser": "6.10.0",
36
38
  "eslint": "8.53.0",
@@ -41,6 +43,7 @@
41
43
  "playwright-slack-report": "^1.1.72",
42
44
  "prettier": "3.0.3",
43
45
  "rimraf": "^5.0.1",
46
+ "ts-node": "^10.9.2",
44
47
  "tsc-alias": "^1.8.16",
45
48
  "typescript": "5.2.2",
46
49
  "valibot": "0.20.1",
@@ -58,6 +61,8 @@
58
61
  "@axe-core/playwright": "^4.7.3",
59
62
  "axios": "^1.5.0",
60
63
  "dotenv": "^16.3.1",
61
- "mailslurp-client": "^15.20.2"
64
+ "mailslurp-client": "^15.20.2",
65
+ "node-fetch": "^3.3.2",
66
+ "unzipper": "^0.12.3"
62
67
  }
63
68
  }