angular/integration/cli-elements-universal
Doug Parker 8b5e5f76a4 test: update protractor builder usage to private-protractor (#58254)
This fixes any existing usage of `@angular-devkit/build-angular:protractor` which would be broken by the CLI `-next.12` upgrade.

PR Close #58254
2024-10-22 07:37:14 -07:00
..
e2e refactor: apply prettier formatting to integration (#54653) 2024-04-02 20:42:04 +00:00
src build: Migrate all integration tests with the schematic. (#58160) 2024-10-14 14:58:58 +00:00
.editorconfig
.gitignore
angular.json test: update protractor builder usage to private-protractor (#58254) 2024-10-22 07:37:14 -07:00
BUILD.bazel build: setup test targets for integration tests with new rule (#44238) 2021-12-08 13:42:41 -05:00
karma.conf.js refactor: apply prettier formatting to integration (#54653) 2024-04-02 20:42:04 +00:00
package.json build: update cross-repo angular dependencies (#57776) 2024-09-13 16:09:02 +02:00
README.md
tsconfig.app.json ci: use application builder for integration tests (#55660) 2024-05-03 11:21:06 -07:00
tsconfig.json build: update ts target to ES2022 and module to ES2022 (#58022) 2024-10-04 13:33:48 +00:00
tsconfig.spec.json refactor(core): remove test.ts files in integration tests (#52109) 2023-10-18 11:52:55 -07:00
yarn.lock build: update cross-repo angular dependencies (#57776) 2024-09-13 16:09:02 +02:00

CliElementsUniversal

This project tests the integration of Angular Elements (@angular/elements) with SSR (via @angular/platform-server).

The project was generated with Angular CLI version 11.1.4. Support for Angular Elements was added with ng add @angular/elements and for SSR with ng generate app-shell.

What this project tests is that an app can be successfully SSR'd even when it uses @angular/elements, which relies on certain DOM built-ins being available as soon as it is imported. This is tested by generating the app-shell (using ng run cli-elements-universal:app-shell:production) and then verifying that the index.html file was generated correctly. (See, the test-ssr script in package.json.)

NOTE: Currently, domino (the server-side DOM implementation used by @angular/platform-server) does not support Web Components, so the Custom Elements functionality does not work on the server.