@@ -6,6 +6,7 @@ var Parcoords = require('@src/traces/parcoords');
6
6
var attributes = require ( '@src/traces/parcoords/attributes' ) ;
7
7
8
8
var createGraphDiv = require ( '../assets/create_graph_div' ) ;
9
+ var delay = require ( '../assets/delay' ) ;
9
10
var destroyGraphDiv = require ( '../assets/destroy_graph_div' ) ;
10
11
var fail = require ( '../assets/fail_test' ) ;
11
12
var mouseEvent = require ( '../assets/mouse_event' ) ;
@@ -239,15 +240,20 @@ describe('parcoords initialization tests', function() {
239
240
} ) ;
240
241
241
242
describe ( '@gl parcoords' , function ( ) {
242
-
243
243
beforeAll ( function ( ) {
244
244
mock . data [ 0 ] . dimensions . forEach ( function ( d ) {
245
245
d . values = d . values . slice ( lineStart , lineStart + lineCount ) ;
246
246
} ) ;
247
247
mock . data [ 0 ] . line . color = mock . data [ 0 ] . line . color . slice ( lineStart , lineStart + lineCount ) ;
248
248
} ) ;
249
249
250
- afterEach ( destroyGraphDiv ) ;
250
+ afterEach ( function ( done ) {
251
+ var gd = d3 . select ( '.js-plotly-plot' ) . node ( ) ;
252
+ if ( gd ) Plotly . purge ( gd ) ;
253
+ destroyGraphDiv ( ) ;
254
+
255
+ return delay ( 50 ) ( ) . then ( done ) ;
256
+ } ) ;
251
257
252
258
describe ( 'edge cases' , function ( ) {
253
259
@@ -496,7 +502,7 @@ describe('@gl parcoords', function() {
496
502
. then ( done ) ;
497
503
} ) ;
498
504
499
- it ( '@flaky Skip dimensions which are not plain objects or whose `values` is not an array' , function ( done ) {
505
+ it ( 'Skip dimensions which are not plain objects or whose `values` is not an array' , function ( done ) {
500
506
501
507
var mockCopy = Lib . extendDeep ( { } , mock1 ) ;
502
508
var newDimension , i , j ;
0 commit comments