From c73ca70f7dfa7c467b87becb253132b37aa82a8c Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Thu, 30 Aug 2018 10:13:12 -0400 Subject: [PATCH] Fix: Zoom unit test --- test/navigation_test.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/navigation_test.js b/test/navigation_test.js index 60fb69f2..87aefd46 100644 --- a/test/navigation_test.js +++ b/test/navigation_test.js @@ -156,10 +156,13 @@ describe('Navigation', function () el(settings.selector + 'zoom-out-button').click(); assertZoomIs(4, this, 'zoom buttons'); - el(settings.selector + 'zoom-in-button').click(); - assertZoomIs(5, this, 'zoom buttons'); + setTimeout(() => + { + el(settings.selector + 'zoom-in-button').click(); + assertZoomIs(5, this, 'zoom buttons'); - done(); + done(); + }, 600); }); let diva = new Diva('diva-wrapper', { // jshint ignore:line