Skip to content

Commit

Permalink
Fix visual tests to check if date-picker is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Sep 24, 2018
1 parent b0fd74e commit 04d4992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/visual/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
document.write(`<link rel="import" href="../../theme/${theme}/vaadin-date-picker.html">`);

window.addEventListener('WebComponentsReady', function() {
setTimeout(function() {
customElements.whenDefined('vaadin-date-picker').then(() => {
window.ShadyDOM && window.ShadyDOM.flush(); // Force DOM composition
window.webComponentsAreReady = true; // Checked in gemini before capture callback
});
Expand Down

0 comments on commit 04d4992

Please sign in to comment.