mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Merge pull request #3776 from felixrieseberg/iss3667
Ensure editor awareness if publishing fails
This commit is contained in:
commit
868219d0a9
2 changed files with 9 additions and 0 deletions
|
@ -11,6 +11,9 @@ var EditorNewController = Ember.ObjectController.extend(EditorControllerMixin, {
|
|||
if (model.get('id')) {
|
||||
self.transitionToRoute('editor.edit', model);
|
||||
}
|
||||
}).catch(function () {
|
||||
// Publishing failed
|
||||
self.set('status', 'draft');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -421,6 +421,12 @@ CasperTest.begin('Publish menu - new post', 11, function suite(test) {
|
|||
test.assertSelectorHasText('.js-publish-button', 'Save Draft');
|
||||
});
|
||||
|
||||
// Fill headline and content
|
||||
casper.then(function fillContent() {
|
||||
casper.sendKeys('#entry-title', 'Headline');
|
||||
casper.writeContentToCodeMirror('Just a bit of testtext');
|
||||
})
|
||||
|
||||
casper.then(function switchMenuToPublish() {
|
||||
// Open the publish options menu;
|
||||
casper.thenClick('.js-publish-splitbutton .options.up');
|
||||
|
|
Loading…
Add table
Reference in a new issue