saving notebook does not run cell.

Thus running cell instead of saving notebook
This commit is contained in:
Bussonnier Matthias 2014-12-12 16:14:21 +01:00
parent 7a3a61fe81
commit 8fc6d2ff1f
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ casper.notebook_test(function () {
IPython.notebook.select(0);
cell.clear_output();
cell.set_text('a=13; print(a)');
$("button[data-jupyter-action='ipython.save-notebook']")[0].click()
$("button[data-jupyter-action='ipython.run-select-next']")[0].click()
});
this.wait_for_output(0);

View File

@ -29,7 +29,7 @@ casper.notebook_test(function () {
$('#cell_type').val('markdown').change();
var cell = IPython.notebook.get_selected_cell();
cell.set_text('*Baz*');
$("button[data-jupyter-action='ipython.save-notebook']")[0].click();
$("button[data-jupyter-action='ipython.run-select-next']")[0].click();
return cell.get_rendered();
});
this.test.assertEquals(output.trim(), '<p><em>Baz</em></p>', 'Markdown toolbar items work.');