mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
saving notebook does not run cell.
Thus running cell instead of saving notebook
This commit is contained in:
parent
7a3a61fe81
commit
8fc6d2ff1f
@ -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);
|
||||
|
@ -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.');
|
||||
|
Loading…
Reference in New Issue
Block a user