From 1760d660b7815c5adfed7b7edd26ea26dac2a77e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Etienne=20T=C3=A9treault-Pinard?= Date: Fri, 20 Oct 2017 10:13:56 -0400 Subject: [PATCH] fixup choropleth select test - PR https://github.com/plotly/plotly.js/pull/2099 got merged on a branch behind https://github.com/plotly/plotly.js/pull/2081 which caused the test to fail on master. --- test/jasmine/tests/select_test.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/jasmine/tests/select_test.js b/test/jasmine/tests/select_test.js index 9915cb9583f..72f29593e3f 100644 --- a/test/jasmine/tests/select_test.js +++ b/test/jasmine/tests/select_test.js @@ -717,10 +717,11 @@ describe('Test select box and lasso per trace:', function() { addInvisible(fig, false); // add a trace with no locations which will then make trace invisible, lacking DOM elements - fig.data.push(Lib.extendDeep({}, fig.data[0])); - fig.data[1].text = []; - fig.data[1].locations = []; - fig.data[1].z = []; + var emptyChoroplethTrace = Lib.extendDeep({}, fig.data[0]); + emptyChoroplethTrace.text = []; + emptyChoroplethTrace.locations = []; + emptyChoroplethTrace.z = []; + fig.data.push(emptyChoroplethTrace); Plotly.plot(gd, fig) .then(function() {