1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 09:23:13 +01:00

Fix shmui visual test

This commit is contained in:
Brett Sun 2016-01-29 14:37:41 +01:00
parent 29b1d8f7e5
commit 11f644dd11

View File

@ -29,12 +29,17 @@ gemini.suite('Work detail', (suite) => {
basicPieceSuite basicPieceSuite
.setUrl(pieceUrl) .setUrl(pieceUrl)
.capture('basic piece') .capture('basic piece')
.capture('shmui', (actions, find) => {
actions.click(find('.ascribe-media-player')); gemini.suite('Shmui', (shmuiSuite) => {
actions.waitForElementToShow('.shmui-wrap:not(.loading)', 30000); shmuiSuite.
// Wait for the transition to end setCaptureElements('.shmui-wrap')
actions.wait(1000); .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) => { gemini.suite('Basic edition', (basicEditionSuite) => {