From 63f136af2b09c2d0f45e6fc7a23e771f66315628 Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Tue, 10 Jun 2014 17:32:17 -0700 Subject: [PATCH] Fixed test to reflect new Bootstrap3 toggle button behavior. --- IPython/html/tests/widgets/widget_selection.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IPython/html/tests/widgets/widget_selection.js b/IPython/html/tests/widgets/widget_selection.js index c4f03cc86..25d5b868f 100644 --- a/IPython/html/tests/widgets/widget_selection.js +++ b/IPython/html/tests/widgets/widget_selection.js @@ -105,6 +105,9 @@ casper.notebook_test(function () { this.test.assert(verify_selection(this, 2), 'List selection updated view states correctly.'); // Verify that selecting a multibutton option updates all of the others. + // Bootstrap3 has changed the toggle button group behavior. Two clicks + // are required to actually select an item. + this.cell_element_function(selection_index, multibtn_selector + ' .btn:nth-child(4)', 'click'); this.cell_element_function(selection_index, multibtn_selector + ' .btn:nth-child(4)', 'click'); }); this.wait_for_idle();