Skip to content

Commit 121ca41

Browse files
committed
work on getting angular 21 system-test correctly set up with new fixtures
1 parent f6b1054 commit 121ca41

Some content is hidden

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

45 files changed

+932
-12
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.angular

system-tests/projects/angular-21/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

system-tests/projects/angular-21/angular.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
"architect": {
1313
"build": {
1414
"builder": "@angular/build:application",
15-
"tsConfig": "tsconfig.app.json",
1615
"options": {
1716
"browser": "src/main.ts",
17+
"tsConfig": "tsconfig.app.json",
1818
"assets": [
1919
"src/favicon.ico",
2020
"src/assets"
2121
],
2222
"styles": [
23-
"src/styles.scss"
23+
"src/styles.css"
2424
]
2525
},
2626
"configurations": {

system-tests/projects/angular-21/cypress.config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ export default defineConfig({
2121
'@angular/platform-browser': require.resolve('@angular/platform-browser'),
2222
'@angular/platform-browser-dynamic/testing': require.resolve('@angular/platform-browser-dynamic/testing'),
2323
'@angular/platform-browser-dynamic': require.resolve('@angular/platform-browser-dynamic'),
24-
'zone.js/testing': require.resolve('zone.js/testing'),
25-
'zone.js': require.resolve('zone.js'),
2624
},
2725
},
2826
},
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<title>Components App</title>
8+
</head>
9+
<body>
10+
<div data-cy-root></div>
11+
</body>
12+
</html>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { mount } from 'cypress/angular-zoneless'
2+
3+
declare global {
4+
namespace Cypress {
5+
interface Chainable {
6+
mount: typeof mount
7+
}
8+
}
9+
}
10+
11+
Cypress.Commands.add('mount', mount)

system-tests/projects/angular-21/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
"@angular/platform-browser-dynamic": "^21.0.0",
2828
"jsdom": "^27.1.0",
2929
"typescript": "~5.9.2",
30-
"vitest": "^4.0.8",
31-
"zone.js": "~0.15.0"
30+
"vitest": "^4.0.8"
3231
},
3332
"projectFixtureDirectory": "angular"
3433
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
h1 {
2+
color: red
3+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Keep this test very simple as "@cypress/schematic" relies on it to run smoke tests
2+
import { AppComponent } from './app.component'
3+
4+
it('should', () => {
5+
cy.mount(AppComponent)
6+
cy.get('h1').contains('Hello World', { timeout: 250 })
7+
})
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<h1>Hello World your app is running!</h1>

0 commit comments

Comments
 (0)