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:
commit
10759ed45a
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 .description', assertImageUploaderModalThenClose,
|
||||
casper.failOnTimeout(test, 'No upload cover modal container appeared'));
|
||||
|
|
Loading…
Add table
Reference in a new issue