E2E Test Config Manager
A VS Code / Kiro extension that provides a visual sidebar panel for managing E2E and Component test configurations. Instead of manually editing .env and .env.user files, use the UI to switch between test types, countries, and products with one click.
Features
- Toggle between E2E and Component test modes
- Country presets (BE, NL, UK, FR) that auto-fill related fields
- Searchable dropdowns for namespace, capabilities, and test cases
- Dynamic capability/test case discovery from the
capabilities/ folder
- Auto-refresh when branch changes (file system watcher)
- Run/Stop
npm run package_execute from the sidebar
- Fully configurable via
.e2erunner.json workspace overrides
What It Changes
.env.user
Updates values for these keys (keys are never renamed or removed):
| Key |
Source |
GITLAB_API_TOKEN |
Manual input |
CAPABILITY |
Selected from capabilities dropdown |
LOCAL |
Selected test case from capability/config/ |
product |
Product dropdown (e.g., RETAIL, PAYCE_CMP) |
localisation |
Localisation dropdown (e.g., nl, uk) |
If .env.user doesn't exist, the extension creates it with empty values.
.env
The extension modifies specific fields and toggle blocks. Everything else is left untouched.
Fields updated:
| Key |
How it's set |
NAMESPACE |
From namespace dropdown |
companyCode |
Auto-derived from localisation (nl→2, uk→5, be→1, fr→4) |
applicationList |
From preset or manual edit |
svc_base_url |
Constructed: https://{api\|login}.{namespace}.{environment}.sbcp.io |
Block toggling (comment/uncomment):
Lines between these markers are toggled based on test type:
#use when running component tests
→ these lines are UNCOMMENTED for Component, COMMENTED for E2E
#running component tests config ends here
#use for compoentTest
→ these lines are UNCOMMENTED for Component, COMMENTED for E2E
#use for compoentTest config ends here
The extension does NOT create .env — it must already exist in the workspace.
Requirements
- VS Code 1.85+ or Kiro
- Microsoft authentication with an
@sbs-software.com email
- A workspace with an existing
.env file
capabilities/ folder for capability/test case discovery
Customisation
Drop a .e2erunner.json in your workspace root to override defaults:
{
"presets": {
"NL": {
"companyCode": "2",
"applicationList": "ABAM,CCS,...",
"localisation": "nl",
"product": "RETAIL"
}
},
"namespaces": {
"e2e": ["e2e-dc-test", "pm2asbfr"],
"component": ["payce", "payce-2"]
},
"products": {
"e2e": { "RETAIL": ["nl"], "SAVINGS": ["uk"] },
"component": { "PAYCE_CMP": ["nl", "uk"] }
},
"envToggleBlocks": [
{
"startMarker": "#use when running component tests",
"endMarker": "#running component tests config ends here",
"activeWhen": "component"
}
],
"capabilities": {
"path": "capabilities",
"testCasePath": "config",
"testCaseExtensions": [".yaml", ".yml"],
"componentPrefix": "comp",
"excludeFolders": ["generated"]
},
"runCommand": "npm run package_execute"
}
Only include the keys you want to override — everything else uses built-in defaults.
Usage
- Open the E2E test repo in VS Code/Kiro
- Authenticate with your
@sbs-software.com Microsoft account
- Click the wrench icon in the activity bar
- Select test type, preset, product, capability, test case
- Click Generate Files to write the config
- Click Run to execute tests