Skip to content

Commit 05026c5

Browse files
test(angular): migrate to playwright (#30594)
- Migrates Angular test app tests from Cypress to Playwright - Resolves test TODOs with Angular 18 - Resolves nav TODO by adding in standalone components - Updates browserslist to remove warnings --------- Co-authored-by: Brandy Smith <[email protected]>
1 parent a2e803a commit 05026c5

File tree

76 files changed

+2282
-8420
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+2282
-8420
lines changed

.github/workflows/actions/test-angular-e2e/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ runs:
3232
run: npm install
3333
shell: bash
3434
working-directory: ./packages/angular/test/build/${{ inputs.app }}
35+
- name: Install Playwright Browsers
36+
run: npx playwright install
37+
shell: bash
38+
working-directory: ./packages/angular/test/build/${{ inputs.app }}
3539
- name: Sync Built Changes
3640
run: npm run sync
3741
shell: bash

packages/angular/test/apps/ng16/angular.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,23 @@
7171
"extractLicenses": false,
7272
"sourceMap": true,
7373
"namedChunks": true
74+
},
75+
"test": {
76+
"fileReplacements": [
77+
{
78+
"replace": "src/environments/environment.ts",
79+
"with": "src/environments/environment.prod.ts"
80+
}
81+
],
82+
"optimization": true,
83+
"outputHashing": "none",
84+
"sourceMap": false,
85+
"namedChunks": false,
86+
"aot": true,
87+
"progress": false,
88+
"extractLicenses": false,
89+
"vendorChunk": false,
90+
"buildOptimizer": true
7491
}
7592
},
7693
"defaultConfiguration": "production"
@@ -86,6 +103,9 @@
86103
},
87104
"development": {
88105
"browserTarget": "test-app:build:development"
106+
},
107+
"test": {
108+
"browserTarget": "test-app:build:test"
89109
}
90110
},
91111
"defaultConfiguration": "development"

packages/angular/test/apps/ng16/e2e/src/lazy/angular-version.spec.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/angular/test/apps/ng16/e2e/tsconfig.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)