From baf75cbee12912f712598417a7b90caddbcadfbc Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Fri, 29 Jan 2016 14:37:41 +0100 Subject: [PATCH] Fix shmui visual test --- test/gemini/tests/main/detail.js | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/test/gemini/tests/main/detail.js b/test/gemini/tests/main/detail.js index 39a02338..7adad5d4 100644 --- a/test/gemini/tests/main/detail.js +++ b/test/gemini/tests/main/detail.js @@ -29,12 +29,17 @@ gemini.suite('Work detail', (suite) => { basicPieceSuite .setUrl(pieceUrl) .capture('basic piece') - .capture('shmui', (actions, find) => { - actions.click(find('.ascribe-media-player')); - actions.waitForElementToShow('.shmui-wrap:not(.loading)', 30000); - // Wait for the transition to end - actions.wait(1000); - }); + + gemini.suite('Shmui', (shmuiSuite) => { + shmuiSuite. + setCaptureElements('.shmui-wrap') + .capture('shmui', (actions, find) => { + actions.click(find('.ascribe-media-player')); + actions.waitForElementToShow('.shmui-wrap:not(.loading)', 30000); + // Wait for the transition to end + actions.wait(1000); + }); + }); }); gemini.suite('Basic edition', (basicEditionSuite) => {