Skip to content

Commit 3b3aa31

Browse files
committed
E2E tests
1 parent 310a36d commit 3b3aa31

14 files changed

+1276
-1207
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@ testem.log
4747
Thumbs.db
4848
*.iml
4949
*.log
50+
/cypress/

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [18.0.0] Major Update
2+
3+
- Adding e2e smock test for the project removing deprecated protractor adding cypress
4+
15
## [17.0.0] Major Update
26

37
- Upgraded to support Angular 17

angular.json

+42-8
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@
3939
"projects/auto-complete/**/*.html"
4040
]
4141
}
42+
},
43+
"ct": {
44+
"builder": "@cypress/schematic:cypress",
45+
"options": {
46+
"devServerTarget": "auto-complete:serve",
47+
"watch": true,
48+
"headless": false,
49+
"testingType": "component"
50+
},
51+
"configurations": {
52+
"development": {
53+
"devServerTarget": "auto-complete:serve:development"
54+
}
55+
}
4256
}
4357
}
4458
},
@@ -154,27 +168,47 @@
154168
]
155169
}
156170
},
157-
"e2e": {
158-
"builder": "@angular-devkit/build-angular:protractor",
171+
"cypress-run": {
172+
"builder": "@cypress/schematic:cypress",
159173
"options": {
160-
"protractorConfig": "projects/demo/e2e/protractor.conf.js"
174+
"devServerTarget": "demo:serve",
175+
"configFile": "projects/demo/cypress.config.ts"
161176
},
162177
"configurations": {
163178
"production": {
164179
"devServerTarget": "demo:serve:production"
165-
},
166-
"development": {
167-
"devServerTarget": "demo:serve:development"
168180
}
181+
}
182+
},
183+
"cypress-open": {
184+
"builder": "@cypress/schematic:cypress",
185+
"options": {
186+
"watch": true,
187+
"headless": false,
188+
"configFile": "projects/demo/cypress.config.ts"
189+
}
190+
},
191+
"e2e": {
192+
"builder": "@cypress/schematic:cypress",
193+
"options": {
194+
"devServerTarget": "demo:serve",
195+
"watch": true,
196+
"headless": false
169197
},
170-
"defaultConfiguration": "development"
198+
"configurations": {
199+
"production": {
200+
"devServerTarget": "demo:serve:production"
201+
}
202+
}
171203
}
172204
}
173205
}
174206
},
175207
"cli": {
176208
"schematicCollections": [
177-
"@angular-eslint/schematics"
209+
"@cypress/schematic",
210+
"@angular-eslint/schematics",
211+
"@schematics/angular"
178212
],
179213
"analytics": false
180214
}

0 commit comments

Comments
 (0)