diff --git a/test/Scrollbars/rendering.js b/test/Scrollbars/rendering.js index c1f436c8..1d8d0823 100644 --- a/test/Scrollbars/rendering.js +++ b/test/Scrollbars/rendering.js @@ -92,10 +92,12 @@ export default function createTests(scrollbarWidth) {
), node, function callback() { - const width = `-${scrollbarWidth}px`; - expect(this.view.style.marginRight).toEqual(width); - expect(this.view.style.marginBottom).toEqual(width); - done(); + setTimeout(() => { + const width = `-${scrollbarWidth}px`; + expect(this.view.style.marginRight).toEqual(width); + expect(this.view.style.marginBottom).toEqual(width); + done(); + }, 100); }); });