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
This commit is contained in:
Doug Parker 2024-10-14 14:05:38 -07:00 committed by Douglas Parker
parent c1a4f63f47
commit 62877bdf2b
4 changed files with 5 additions and 28 deletions

View File

@ -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"
]
@ -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,

View File

@ -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",

View File

@ -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": {

View File

@ -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',
}