diff --git a/packages/platform-server/test/integration_spec.ts b/packages/platform-server/test/integration_spec.ts index 4d8d8240c0..311b4f52a7 100644 --- a/packages/platform-server/test/integration_spec.ts +++ b/packages/platform-server/test/integration_spec.ts @@ -334,6 +334,20 @@ class TransferStoreModule { class EscapedTransferStoreModule { } +@Component({selector: 'app', template: ''}) +class MyHiddenComponent { + @Input() + name = ''; +} + +@NgModule({ + declarations: [MyHiddenComponent], + bootstrap: [MyHiddenComponent], + imports: [ServerModule, BrowserModule.withServerTransition({appId: 'hidden-attributes'})] +}) +class HiddenModule { +} + (function() { if (getDOM().supportsDOMEvents()) return; // NODE only @@ -613,6 +627,15 @@ class EscapedTransferStoreModule { }); })); + it('should handle element property "hidden"', async(() => { + renderModule(HiddenModule, {document: doc}).then(output => { + expect(output).toBe( + '' + + ''); + called = true; + }); + })); + it('should call render hook', async(() => { renderModule(RenderHookModule, {document: doc}).then(output => { // title should be added by the render hook.