From 67f485668c0d87fc8a99c5fad69c414f64c51ab0 2014-12-12 15:14:21 From: Bussonnier Matthias Date: 2014-12-12 15:14:21 Subject: [PATCH] saving notebook does not run cell. Thus running cell instead of saving notebook --- diff --git a/IPython/html/tests/notebook/execute_code.js b/IPython/html/tests/notebook/execute_code.js index c1e6571..8374fc1 100644 --- a/IPython/html/tests/notebook/execute_code.js +++ b/IPython/html/tests/notebook/execute_code.js @@ -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); diff --git a/IPython/html/tests/notebook/markdown.js b/IPython/html/tests/notebook/markdown.js index 2287b9b..cafe19d 100644 --- a/IPython/html/tests/notebook/markdown.js +++ b/IPython/html/tests/notebook/markdown.js @@ -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(), '

Baz

', 'Markdown toolbar items work.');