File tree Expand file tree Collapse file tree
packages/labs/ssr/src/test/integration/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1606,6 +1606,23 @@ export const tests: {[name: string]: SSRTest} = {
16061606 {
16071607 args : [ ] ,
16081608 html : '<void-element-host></void-element-host>' ,
1609+ async check ( assert : Chai . Assert , dom : HTMLElement ) {
1610+ const host = dom . querySelector ( 'void-element-host' ) as LitElement & {
1611+ maxLen : number ;
1612+ } ;
1613+ assert . instanceOf ( host , LitElement ) ;
1614+ assert . equal ( host . maxLen , 64 ) ;
1615+
1616+ await host . updateComplete ;
1617+ // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain
1618+ const input = host . shadowRoot ?. querySelector ( 'input' ) ! ;
1619+ assert . instanceOf ( input , HTMLElement ) ;
1620+ assert . equal ( input . getAttribute ( 'max' ) , '64' ) ;
1621+
1622+ host . maxLen ++ ;
1623+ await host . updateComplete ;
1624+ assert . equal ( input . getAttribute ( 'max' ) , '65' ) ;
1625+ } ,
16091626 } ,
16101627 ] ,
16111628 stableSelectors : [ 'input' ] ,
You can’t perform that action at this time.
0 commit comments