File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -138,9 +138,14 @@ describe('annotations autosize', function() {
138
138
var fullLayout = gd . _fullLayout ;
139
139
var PREC = 1 ;
140
140
141
+ // xaxis2 need a bit more tolerance to pass on CI
142
+ // this most likely due to the different text bounding box values
143
+ // on headfull vs headless browsers.
144
+ var PREC2 = 0.1 ;
145
+
141
146
expect ( fullLayout . xaxis . range ) . toBeCloseToArray ( x , PREC , '- xaxis' ) ;
142
147
expect ( fullLayout . yaxis . range ) . toBeCloseToArray ( y , PREC , '- yaxis' ) ;
143
- expect ( fullLayout . xaxis2 . range ) . toBeCloseToArray ( x2 , PREC , 'xaxis2' ) ;
148
+ expect ( fullLayout . xaxis2 . range ) . toBeCloseToArray ( x2 , PREC2 , 'xaxis2' ) ;
144
149
expect ( fullLayout . yaxis2 . range ) . toBeCloseToArray ( y2 , PREC , 'yaxis2' ) ;
145
150
expect ( fullLayout . xaxis3 . range ) . toBeCloseToArray ( x3 , PREC , 'xaxis3' ) ;
146
151
expect ( fullLayout . yaxis3 . range ) . toBeCloseToArray ( y3 , PREC , 'yaxis3' ) ;
You can’t perform that action at this time.
0 commit comments