Test based on css selection

This commit is contained in:
Sylvain Corlay 2015-12-16 12:58:10 -05:00
parent a094df764e
commit 859e1c77b6

View File

@ -22,10 +22,10 @@ casper.notebook_test(function () {
return Jupyter.notebook.get_selected_cells().length;
}), 1, 'only one cell is selected programmatically');
this.test.assertEquals(this.evaluate(function() {
return $('.cell.jupyter-soft-selected').length;
this.test.assertEquals(this.evaluate(function() {
return $('.cell.jupyter-soft-selected, .cell.selected').length;
}), 1, 'one cell is selected');
this.test.assertEquals(this.evaluate(function() {
Jupyter.notebook.extend_selection_by(1);
return Jupyter.notebook.get_selected_cells().length;