You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cypress): enhance kubeconfig selection with Downloads search
- Add current kubeconfig usage prompt
- Search Downloads for *kubeconfig* files
- Show numbered list for easy selection
- Allow custom path input as fallback
Copy file name to clipboardExpand all lines: web/cypress/README.md
+23-1Lines changed: 23 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ node_modules/ -> dependencies will be installed at runtime here
17
17
## Running locally
18
18
19
19
### Export necessary variables
20
-
in order to run Cypress tests, we need to export some environment variables that Cypress can read then pass down to our tests, currently we have following environment variables defined and used.
20
+
in order to run Cypress tests, we need to export some environment variables that Cypress can read then pass down to our tests, currently we have following environment variables defined and used.
21
21
22
22
Using a non-admin user.
23
23
```bash
@@ -62,6 +62,28 @@ Set the following var to use custom Monitoring Console Plugin UI plugin image. T
The `configure-env.sh` script provides an interactive way to set up all the required environment variables. This script eliminates the need to manually export each variable and helps find the correct kubeconfig file.
68
+
69
+
**Features:**
70
+
- Automatic prompting for all CYPRESS_ variables
71
+
- Automatic discovery and numbered selection of `*kubeconfig*` files in `$HOME/Downloads` dir
72
+
73
+
**Usage:**
74
+
```bash
75
+
# Note: source command requires Bash shell
76
+
source ./configure-env.sh
77
+
```
78
+
To export variables directly (Bash only).
79
+
80
+
**File generation**
81
+
```bash
82
+
./configure-env.sh
83
+
```
84
+
Creates an export file you can source later. (`source "export-env.sh`)
85
+
86
+
65
87
### Before running cypress
66
88
- Make sure cluster's kubeconfig file is located at the correct environment variable / path you have exported
67
89
- The file to run Monitoring Plugin tests: bvt.cy.ts
0 commit comments