Skip to content

Commit d9e7b2d

Browse files
committed
adjust test
1 parent 63798bf commit d9e7b2d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/jasmine/tests/plot_api_react_test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,20 +418,28 @@ describe('@noCIdep Plotly.react', function() {
418418
expect(d3SelectAll('.drag').size()).toBe(11);
419419
expect(d3SelectAll('.gtitle').text()).toBe('Click to enter Plot title');
420420
expect(d3SelectAll('.gtitle-subtitle').text()).toBe('Click to enter Plot subtitle');
421+
422+
afterPlotCnt++; // since it uses newPlot pathway as a result of config change
421423
countCalls({plot: 1});
422424

423425
return Plotly.react(gd, data, layout, {staticPlot: true});
424426
})
425427
.then(function() {
426428
expect(d3SelectAll('.drag').size()).toBe(0);
427429
expect(d3SelectAll('.gtitle').size()).toBe(0);
430+
expect(d3SelectAll('.gtitle-subtitle').size()).toBe(0);
431+
432+
afterPlotCnt++; // since it uses newPlot pathway as a result of config change
428433
countCalls({plot: 1});
429434

430435
return Plotly.react(gd, data, layout, {});
431436
})
432437
.then(function() {
433438
expect(d3SelectAll('.drag').size()).toBe(11);
434439
expect(d3SelectAll('.gtitle').size()).toBe(0);
440+
expect(d3SelectAll('.gtitle-subtitle').size()).toBe(0);
441+
442+
afterPlotCnt++; // since it uses newPlot pathway as a result of config change
435443
countCalls({plot: 1});
436444
})
437445
.then(done, done.fail);

0 commit comments

Comments
 (0)