Skip to content

Commit 1a8f4a9

Browse files
committed
wait for it...
1 parent 001c9e7 commit 1a8f4a9

File tree

1 file changed

+6
-2
lines changed
  • packages/browser-integration-tests/suites/replay/captureConsoleLog

1 file changed

+6
-2
lines changed

packages/browser-integration-tests/suites/replay/captureConsoleLog/template.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
const massiveObject = createLargeObject(10);
1212

1313
document.querySelector('[data-log]').addEventListener('click', () => {
14-
console.log('Test log', document.body);
14+
setTimeout(() => {
15+
console.log('Test log', document.body);
16+
}, 100);
1517
});
1618

1719
function createLargeObject(remainingDepth) {
@@ -32,7 +34,9 @@
3234
}
3335

3436
document.querySelector('[data-log-large]').addEventListener('click', () => {
35-
console.log(massiveObject);
37+
setTimeout(() => {
38+
console.log(massiveObject);
39+
}, 100);
3640
});
3741
</script>
3842
</body>

0 commit comments

Comments
 (0)