Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ export function screenshotsObservableFactory(server) {
}
}

return Promise.all(renderedTasks);
// The renderComplete fires before the visualizations are in the DOM, so
// we wait for the event loop to flush before resolving the promise. This
// seems to correct the timing issue and prevents us from capturing
// visualization screenshots before they're rendered.
return Promise.all(renderedTasks).then(() => new Promise(r => setTimeout(r)));
},
args: [layout.selectors.renderComplete, captureConfig.loadDelay],
awaitPromise: true,
Expand Down