You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am testing whether CSS properties will have successfully been applied to the Shadow DOM element which is wrapped in a conditional template using flush:
constassertComputed=(node,expected,property)=>{constactual=getComputedStyle(node).getPropertyValue(property).trim();assert.equal(expected,actual);};
....// testtest('CSS properties applied within conditional template',(done)=>{flush(()=>{constthumbnail=player.shadowRoot.querySelector('.thumbnail');assertComputed(thumbnail,'orange','--video-thumbnail-background-color');done();});});
<templateis="dom-if" if={{showThumbnailPreview}}><divid="preview_thumbnail" class="thumbnail">THUMBNAIL PREVIEW MOUSE OVER POSITION: [[xPosition]]</div></template>
Expected Results
Test passes
Actual Results
Error: thumbnail preview has not rendered: expected null to not equal null
Browsers Affected
Chrome
Versions
Polymer: 1.9.11
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I am testing whether CSS properties will have successfully been applied to the Shadow DOM element which is wrapped in a conditional template using
flush
:Expected Results
Test passes
Actual Results
Error: thumbnail preview has not rendered: expected null to not equal null
Browsers Affected
Versions
The text was updated successfully, but these errors were encountered: