From f8af231f1ab66810a6b540b78182fd14bc2cb864 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 6 Aug 2015 05:45:36 -0400 Subject: [PATCH] Make CR wizard button assertions Mac-only for now Wizard buttons are handled differently on Linux/Windows --- test/tests/syncLocalTest.js | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/test/tests/syncLocalTest.js b/test/tests/syncLocalTest.js index ce4280ee62..22fec6806d 100644 --- a/test/tests/syncLocalTest.js +++ b/test/tests/syncLocalTest.js @@ -102,8 +102,13 @@ describe("Zotero.Sync.Data.Local", function() { // Select local object mergeGroup.leftpane.click(); assert.equal(mergeGroup.leftpane.getAttribute('selected'), 'true'); - assert.isTrue(wizard.getButton('next').hidden); - assert.isFalse(wizard.getButton('finish').hidden); + if (Zotero.isMac) { + assert.isTrue(wizard.getButton('next').hidden); + assert.isFalse(wizard.getButton('finish').hidden); + } + else { + // TODO + } wizard.getButton('finish').click(); }) yield Zotero.Sync.Data.Local.processSyncCacheForObjectType( @@ -185,8 +190,13 @@ describe("Zotero.Sync.Data.Local", function() { ); resolveAll.click(); - assert.isTrue(wizard.getButton('next').hidden); - assert.isFalse(wizard.getButton('finish').hidden); + if (Zotero.isMac) { + assert.isTrue(wizard.getButton('next').hidden); + assert.isFalse(wizard.getButton('finish').hidden); + } + else { + // TODO + } wizard.getButton('finish').click(); }) yield Zotero.Sync.Data.Local.processSyncCacheForObjectType(