0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Another adjustment to handle timing issue on tests

ref #1702
-timing issue with the test still exists in #2729 since
 .description is added to the dom after the fact via js
This commit is contained in:
Jason Williams 2014-05-11 19:25:48 +00:00
parent e4799e3fb0
commit ef1bc05422

View file

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