0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Merge pull request #2733 from jaswilli/test-error

Fix intermittent image upload modal failures
This commit is contained in:
Hannah Wolfe 2014-05-12 10:27:15 +01:00
commit 10759ed45a

View file

@ -163,9 +163,9 @@ CasperTest.begin('Ensure image upload modals display correctly', 6, function sui
casper.failOnTimeout(test, 'No upload logo modal container appeared'));
// Test Blog Cover Upload Button
casper.then(function () {
this.click('#general .js-modal-cover');
});
casper.waitForOpaque('#general', function then() {
this.click('#general .js-modal-cover');
}, casper.failOnTimeout(test, 'waitForOpaque #general timed out'));
casper.waitForSelector('#modal-container .modal-content .js-drop-zone .description', assertImageUploaderModalThenClose,
casper.failOnTimeout(test, 'No upload cover modal container appeared'));