@@ -15,6 +15,7 @@ var supplyAllDefaults = require('../assets/supply_defaults');
15
15
var mockLists = require ( '../assets/mock_lists' ) ;
16
16
var mouseEvent = require ( '../assets/mouse_event' ) ;
17
17
var drag = require ( '../assets/drag' ) ;
18
+ var delay = require ( '../assets/delay' ) ;
18
19
19
20
var MAPBOX_ACCESS_TOKEN = require ( '@build/credentials.json' ) . MAPBOX_ACCESS_TOKEN ;
20
21
@@ -944,7 +945,10 @@ describe('Plotly.react and uirevision attributes', function() {
944
945
gd = createGraphDiv ( ) ;
945
946
} ) ;
946
947
947
- afterEach ( destroyGraphDiv ) ;
948
+ afterEach ( function ( ) {
949
+ Plotly . purge ( gd ) ;
950
+ destroyGraphDiv ( ) ;
951
+ } ) ;
948
952
949
953
function checkCloseIfArray ( val1 , val2 , msg ) {
950
954
if ( Array . isArray ( val1 ) && Array . isArray ( val2 ) ) {
@@ -1762,7 +1766,7 @@ describe('Plotly.react and uirevision attributes', function() {
1762
1766
_run ( fig , editEditable , checkAttrs ( true ) , checkAttrs ) . then ( done ) ;
1763
1767
} ) ;
1764
1768
1765
- it ( '@noCI @ gl preserves editable: true name, colorbar title and parcoords constraint range via trace.uirevision' , function ( done ) {
1769
+ it ( '@gl preserves editable: true name, colorbar title and parcoords constraint range via trace.uirevision' , function ( done ) {
1766
1770
function fig ( mainRev , traceRev ) {
1767
1771
return {
1768
1772
data : [ {
@@ -1805,16 +1809,18 @@ describe('Plotly.react and uirevision attributes', function() {
1805
1809
. then ( function ( ) {
1806
1810
return drag ( { node : axisDragNode ( 0 ) , dpos : [ 0 , 50 ] , noCover : true } ) ;
1807
1811
} )
1812
+ . then ( delay ( 100 ) )
1808
1813
. then ( function ( ) {
1809
1814
return drag ( { node : axisDragNode ( 0 ) , dpos : [ 0 , - 50 ] , noCover : true } ) ;
1810
1815
} )
1816
+ . then ( delay ( 100 ) )
1811
1817
. then ( function ( ) {
1812
1818
return drag ( { node : axisDragNode ( 1 ) , dpos : [ 0 , - 50 ] , noCover : true } ) ;
1813
1819
} ) ;
1814
1820
}
1815
1821
1816
1822
_run ( fig , editTrace , checkState ( [ attrs ( true ) ] ) , checkState ( [ attrs ( ) ] ) ) . then ( done ) ;
1817
- } ) ;
1823
+ } , 5 * jasmine . DEFAULT_TIMEOUT_INTERVAL ) ;
1818
1824
1819
1825
it ( 'preserves editable: true axis titles using the axis uirevisions' , function ( done ) {
1820
1826
function fig ( mainRev , axRev ) {
0 commit comments