1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00

Fix shmui visual test

This commit is contained in:
Brett Sun 2016-01-29 14:37:41 +01:00
parent 574378af98
commit baf75cbee1

View File

@ -29,6 +29,10 @@ gemini.suite('Work detail', (suite) => {
basicPieceSuite basicPieceSuite
.setUrl(pieceUrl) .setUrl(pieceUrl)
.capture('basic piece') .capture('basic piece')
gemini.suite('Shmui', (shmuiSuite) => {
shmuiSuite.
setCaptureElements('.shmui-wrap')
.capture('shmui', (actions, find) => { .capture('shmui', (actions, find) => {
actions.click(find('.ascribe-media-player')); actions.click(find('.ascribe-media-player'));
actions.waitForElementToShow('.shmui-wrap:not(.loading)', 30000); actions.waitForElementToShow('.shmui-wrap:not(.loading)', 30000);
@ -36,6 +40,7 @@ gemini.suite('Work detail', (suite) => {
actions.wait(1000); actions.wait(1000);
}); });
}); });
});
gemini.suite('Basic edition', (basicEditionSuite) => { gemini.suite('Basic edition', (basicEditionSuite) => {
basicEditionSuite basicEditionSuite