This repository was archived by the owner on Nov 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +19
-4
lines changed
integration/express-engine-ivy
modules/common/engine/src Expand file tree Collapse file tree 4 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 4848 "tsConfig" : " tsconfig.app.json" ,
4949 "aot" : true ,
5050 "assets" : [" src/favicon.ico" , " src/assets" ],
51- "styles" : [" src/styles.css" ],
51+ "styles" : [
52+ " src/styles.css" ,
53+ {
54+ "input" : " src/styles-extra.css" ,
55+ "inject" : true ,
56+ "bundleName" : " extra"
57+ }
58+ ],
5259 "scripts" : []
5360 },
5461 "configurations" : {
Original file line number Diff line number Diff line change @@ -61,8 +61,12 @@ describe('Hello world E2E Tests', () => {
6161 await browser . driver . get ( browser . baseUrl ) ;
6262
6363 // Test the contents from the server.
64- const styleTag = browser . driver . findElement ( by . css ( 'link[rel="stylesheet"]' ) ) ;
65- expect ( styleTag . getAttribute ( 'media' ) ) . toMatch ( 'all' ) ;
64+ const linkTags = await browser . driver . findElements ( by . css ( 'link[rel="stylesheet"]' ) ) ;
65+ expect ( linkTags . length ) . toBe ( 2 ) ;
66+
67+ for ( const linkTag of linkTags ) {
68+ expect ( linkTag . getAttribute ( 'media' ) ) . toMatch ( 'all' ) ;
69+ }
6670
6771 // Make sure there were no client side errors.
6872 verifyNoBrowserErrors ( ) ;
Original file line number Diff line number Diff line change 1+ /* You can add global styles to this file, and also import other style files */
2+ .foo {
3+ background-color : blue;
4+ }
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ export class CommonEngine {
102102 document : inlineCriticalCss
103103 ? // Workaround for https://github.com/GoogleChromeLabs/critters/issues/64
104104 doc . replace (
105- / m e d i a = " p r i n t " o n l o a d = " t h i s \. m e d i a = ' .+ ' " (?: n g C s p M e d i a = " .+ " ) ? > < n o s c r i p t > < l i n k .+ ?> < \/ n o s c r i p t > / g,
105+ / m e d i a = " p r i n t " o n l o a d = " t h i s \. m e d i a = ' .+ ? ' " (?: n g C s p M e d i a = " .+ " ) ? > < n o s c r i p t > < l i n k .+ ?> < \/ n o s c r i p t > / g,
106106 '>' ,
107107 )
108108 : doc ,
You can’t perform that action at this time.
0 commit comments