mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Fix intermittent image upload modal failures
ref #1702 -wait for logo upload modal to go away before beginning test for cover upload modal
This commit is contained in:
parent
e4799e3fb0
commit
0d7a935855
1 changed files with 3 additions and 3 deletions
|
@ -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', assertImageUploaderModalThenClose,
|
||||
casper.failOnTimeout(test, 'No upload cover modal container appeared'));
|
||||
|
|
Loading…
Add table
Reference in a new issue