Skip to content

Commit 62877bd

Browse files
committed
refactor(@angular-devkit/build-angular): remove Protractor builder and schematics
BREAKING CHANGE: Protractor is no longer supported. Protractor was marked end-of-life in August 2023 (see https://protractortest.org/). Projects still relying on Protractor should consider migrating to another E2E testing framework, several support solid migration paths from Protractor. * https://angular.dev/tools/cli/end-to-end * https://blog.angular.dev/the-state-of-end-to-end-testing-with-angular-d175f751cb9c
1 parent c1a4f63 commit 62877bd

File tree

4 files changed

+5
-28
lines changed

4 files changed

+5
-28
lines changed

packages/angular/cli/lib/config/workspace-schema.json

-23
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,6 @@
368368
"@angular-devkit/build-angular:prerender",
369369
"@angular-devkit/build-angular:jest",
370370
"@angular-devkit/build-angular:web-test-runner",
371-
"@angular-devkit/build-angular:protractor",
372371
"@angular-devkit/build-angular:server",
373372
"@angular-devkit/build-angular:ssr-dev-server"
374373
]
@@ -656,28 +655,6 @@
656655
}
657656
}
658657
},
659-
{
660-
"type": "object",
661-
"additionalProperties": false,
662-
"properties": {
663-
"builder": {
664-
"const": "@angular-devkit/build-angular:protractor"
665-
},
666-
"defaultConfiguration": {
667-
"type": "string",
668-
"description": "A default named configuration to use when a target configuration is not provided."
669-
},
670-
"options": {
671-
"$ref": "../../../../angular_devkit/build_angular/src/builders/protractor/schema.json"
672-
},
673-
"configurations": {
674-
"type": "object",
675-
"additionalProperties": {
676-
"$ref": "../../../../angular_devkit/build_angular/src/builders/protractor/schema.json"
677-
}
678-
}
679-
}
680-
},
681658
{
682659
"type": "object",
683660
"additionalProperties": false,

packages/angular_devkit/build_angular/builders.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
"schema": "./src/builders/web-test-runner/schema.json",
4343
"description": "Run unit tests with Web Test Runner."
4444
},
45-
"protractor": {
45+
"private-protractor": {
4646
"implementation": "./src/builders/protractor",
4747
"schema": "./src/builders/protractor/schema.json",
48-
"description": "Run protractor over a dev server."
48+
"description": "PRIVATE API - Do not use."
4949
},
5050
"server": {
5151
"implementation": "./src/builders/server",

packages/schematics/angular/collection.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
"schema": "./application/schema.json",
2424
"description": "Create an Angular application."
2525
},
26-
"e2e": {
26+
"private-e2e": {
2727
"factory": "./e2e",
2828
"schema": "./e2e/schema.json",
29-
"description": "Create an Angular e2e application.",
29+
"description": "PRIVATE API - Do not use.",
3030
"hidden": true
3131
},
3232
"class": {

packages/schematics/angular/utility/workspace-models.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export enum Builders {
3030
NgPackagr = '@angular-devkit/build-angular:ng-packagr',
3131
DevServer = '@angular-devkit/build-angular:dev-server',
3232
ExtractI18n = '@angular-devkit/build-angular:extract-i18n',
33-
Protractor = '@angular-devkit/build-angular:protractor',
33+
Protractor = '@angular-devkit/build-angular:private-protractor',
3434
BuildApplication = '@angular/build:application',
3535
}
3636

0 commit comments

Comments
 (0)