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:
parent
e4799e3fb0
commit
ef1bc05422
1 changed files with 2 additions and 2 deletions
|
@ -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'));
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue