@@ -19,7 +19,10 @@ describe('Simple tests for visuals', () => {
1919 cy . wait ( 5000 )
2020 // This may fail locally due to differences in runtime such as installed
2121 // fonts on. The snapshots used in this test are generated on GitHub Actions
22- cy . get ( 'canvas[data-testid="overlayCanvas"]' ) . compareSnapshot ( 'gene-model' )
22+ cy . get ( 'canvas[data-testid="overlayCanvas"]' ) . compareSnapshot ( {
23+ name : 'gene-model' ,
24+ testThreshold : 0.03 ,
25+ } )
2326 } )
2427 it ( 'Shows different glyph types' , ( ) => {
2528 cy . addAssemblyFromGff ( 'glyph_types.gff3' , 'test_data/glyph_types.gff3' )
@@ -36,19 +39,21 @@ describe('Simple tests for visuals', () => {
3639 cy . wait ( 2000 ) // Wait for render
3740 // This may fail locally due to differences in runtime such as installed
3841 // fonts on. The snapshots used in this test are generated on GitHub Actions
39- cy . get ( 'canvas[data-testid="seqTrackCanvas"]' ) . compareSnapshot (
40- 'seq-track-canvas' ,
41- )
42+ cy . get ( 'canvas[data-testid="seqTrackCanvas"]' ) . compareSnapshot ( {
43+ name : 'seq-track-canvas' ,
44+ testThreshold : 0.03 ,
45+ } )
4246
4347 cy . get ( '[data-testid="track_menu_icon"]' ) . last ( ) . click ( )
4448 cy . contains ( 'Display types' ) . trigger ( 'mouseover' )
4549 cy . contains ( 'LinearApolloSixFrameDisplay' ) . click ( )
4650 cy . wait ( 2000 ) // Wait for render
4751 // This may fail locally due to differences in runtime such as installed
4852 // fonts on. The snapshots used in this test are generated on GitHub Actions
49- cy . get ( 'canvas[data-testid="canvas"]' ) . compareSnapshot (
50- 'linear-apollo-six-frame-display-canvas' ,
51- )
53+ cy . get ( 'canvas[data-testid="canvas"]' ) . compareSnapshot ( {
54+ name : 'linear-apollo-six-frame-display-canvas' ,
55+ testThreshold : 0.03 ,
56+ } )
5257
5358 cy . get ( '[data-testid="track_menu_icon"]' ) . last ( ) . click ( )
5459 cy . contains ( 'Display types' ) . trigger ( 'mouseover' )
0 commit comments