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
@@ -134,22 +149,31 @@ Then you create a command in package.json inside `scripts`:
134
149
```json
135
150
{
136
151
"scripts": {
137
-
"yourProductName-staging-daily": "cypress run --env product=yourProductName,env=staging,type=daily"
152
+
"yourProductName-staging-daily": "cypress run -e product=yourProductName,env=staging,type=daily"
138
153
}
139
154
}
140
155
```
141
156
142
-
To sum up, both `cypress.local.json` and `./cypress/configs/your-product-name/daily.json` will be merged into the global `./cypress.json` in that order.
157
+
#### Local config
158
+
159
+
Create a file `cypress.local.ts` inside `./cypress/configs/`. Your local config will be then merged with the global config and product config.
160
+
161
+
Here you can place your overrides.
162
+
163
+
> If you need to temporarily disable this file, just rename it.
By default, in the [parent boilerplate](https://github.com/optimumqa/cypress-multi-product-template), three environments are created: [staging, release, production] inside the `./cypress/fixtures/yourProductName/` populated with the `baseUrl` per environment.
170
+
By default, in the [parent boilerplate](https://github.com/optimumqa/cypress-boilerplate), three environments are created: [staging, release, production] inside the `./cypress/fixtures/yourProductName/` populated with the `baseUrl` per environment.
147
171
148
172
When you run cypress, this plugin will take the baseUrl of the current product and environment, and set it to the final cypress config if you have the need to get the `baseUrl` from there, and not from the fixtures `routes.json` file.
149
173
150
-
Therefor, you can have multiple products inside the [parent boilerplate](https://github.com/optimumqa/cypress-multi-product-template), as this plugin sets up your config depending on the parameters you've given it.
174
+
Therefor, you can have multiple products inside the [parent boilerplate](https://github.com/optimumqa/cypress-boilerplate), as this plugin sets up your config depending on the parameters you've given it.
151
175
152
-
Keeps the package.json clutter free and gives it intuitive commands to run.
176
+
Keeps the `package.json` clutter free and gives it intuitive commands to run.
153
177
154
178
### Delete passed video
155
179
@@ -158,7 +182,7 @@ Deletes videos from passed test cases.
158
182
## Summary
159
183
160
184
- Project is dynamically set up based on the four arguments above
161
-
- If you specify `baseUrl` or `testFiles` in configs, they will not be overwritten.
185
+
- If you specify `baseUrl` or `specPattern` in configs, they will not be overwritten.
0 commit comments