Skip to content

Commit

Permalink
refactor(@angular-devkit/build-angular): remove Protractor builder an…
Browse files Browse the repository at this point in the history
…d 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
  • Loading branch information
dgp1130 committed Oct 21, 2024
1 parent c1a4f63 commit 62877bd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 28 deletions.
23 changes: 0 additions & 23 deletions packages/angular/cli/lib/config/workspace-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@
"@angular-devkit/build-angular:prerender",
"@angular-devkit/build-angular:jest",
"@angular-devkit/build-angular:web-test-runner",
"@angular-devkit/build-angular:protractor",
"@angular-devkit/build-angular:server",
"@angular-devkit/build-angular:ssr-dev-server"
]
Expand Down Expand Up @@ -656,28 +655,6 @@
}
}
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"builder": {
"const": "@angular-devkit/build-angular:protractor"
},
"defaultConfiguration": {
"type": "string",
"description": "A default named configuration to use when a target configuration is not provided."
},
"options": {
"$ref": "../../../../angular_devkit/build_angular/src/builders/protractor/schema.json"
},
"configurations": {
"type": "object",
"additionalProperties": {
"$ref": "../../../../angular_devkit/build_angular/src/builders/protractor/schema.json"
}
}
}
},
{
"type": "object",
"additionalProperties": false,
Expand Down
4 changes: 2 additions & 2 deletions packages/angular_devkit/build_angular/builders.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
"schema": "./src/builders/web-test-runner/schema.json",
"description": "Run unit tests with Web Test Runner."
},
"protractor": {
"private-protractor": {
"implementation": "./src/builders/protractor",
"schema": "./src/builders/protractor/schema.json",
"description": "Run protractor over a dev server."
"description": "PRIVATE API - Do not use."
},
"server": {
"implementation": "./src/builders/server",
Expand Down
4 changes: 2 additions & 2 deletions packages/schematics/angular/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"schema": "./application/schema.json",
"description": "Create an Angular application."
},
"e2e": {
"private-e2e": {
"factory": "./e2e",
"schema": "./e2e/schema.json",
"description": "Create an Angular e2e application.",
"description": "PRIVATE API - Do not use.",
"hidden": true
},
"class": {
Expand Down
2 changes: 1 addition & 1 deletion packages/schematics/angular/utility/workspace-models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export enum Builders {
NgPackagr = '@angular-devkit/build-angular:ng-packagr',
DevServer = '@angular-devkit/build-angular:dev-server',
ExtractI18n = '@angular-devkit/build-angular:extract-i18n',
Protractor = '@angular-devkit/build-angular:protractor',
Protractor = '@angular-devkit/build-angular:private-protractor',
BuildApplication = '@angular/build:application',
}

Expand Down

0 comments on commit 62877bd

Please sign in to comment.