Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions applications/Grants.AutoUI/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Local Cypress env overrides (pipeline uses cypress.pipeline.env.json)
cypress.env.json

# Local environment config files — create from the .example files in cypress/config/
cypress/config/dev.json
cypress/config/dev2.json
cypress/config/test.json
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Cypress Environment Config Files

The `*.json` config files in this folder are **excluded from git** (via `.gitignore`) because they contain credentials.
Each developer must create their own local copies from the `.example` files provided.

## Setup

Copy the example file(s) for the environment(s) you need and fill in your credentials:

```bash
# Windows (PowerShell)
Copy-Item cypress/config/dev.json.example cypress/config/dev.json
Copy-Item cypress/config/dev2.json.example cypress/config/dev2.json
Copy-Item cypress/config/test.json.example cypress/config/test.json
Copy-Item cypress/config/uat.json.example cypress/config/uat.json
Copy-Item cypress/config/prod.json.example cypress/config/prod.json

# macOS / Linux
cp cypress/config/dev.json.example cypress/config/dev.json
cp cypress/config/test.json.example cypress/config/test.json
# etc.
```

Then open the file and fill in your credentials:

```json
{
"baseUrl": "https://dev-grants.apps.silver.devops.gov.bc.ca/",
"environment": "dev",
"test1username": "your-test-username",
"test1password": "your-test-password",
"test2username": "your-second-test-username",
"test2password": "your-second-test-password",
"bcscUsername": "your-bcsc-username",
"bcscPassword": "your-bcsc-password",
"workspaceName": "your-workspace-name",
"providerName": "your-provider-name"
}
```

## Available example files

| Example file | Creates | Environment URL |
|---|---|---|
| `dev.json.example` | `dev.json` | https://dev-grants.apps.silver.devops.gov.bc.ca/ |
| `dev2.json.example` | `dev2.json` | https://dev2-grants.apps.silver.devops.gov.bc.ca/ |
| `test.json.example` | `test.json` | https://test-grants.apps.silver.devops.gov.bc.ca/ |
| `uat.json.example` | `uat.json` | https://uat-grants.apps.silver.devops.gov.bc.ca/ |
| `prod.json.example` | `prod.json` | https://prod-grants.apps.silver.devops.gov.bc.ca/ |

## Important

- **Never commit your `*.json` files** — they are gitignored to protect credentials.
- **Do commit changes to `*.json.example` files** if the config structure or base URLs change.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"bcscPassword": "",
"workspaceName": "",
"providerName": ""
}
}
12 changes: 0 additions & 12 deletions applications/Grants.AutoUI/cypress/config/dev2.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"bcscPassword": "",
"workspaceName": "",
"providerName": ""
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"bcscPassword": "",
"workspaceName": "",
"providerName": ""
}
}
Loading