import { imageCompareFullPageScreen } from '../common/image-compare' ; import { SankeyChartPage } from './sankey-chart.po.spec' ; describe ( 'Sankey Chart' , ( ) => { let page ; beforeEach ( async ( ) => { page = new SankeyChartPage ( ) ; await page . getPage ( ) ; } ) ; it ( 'should size nodes with minHeight = 0' , async ( ) => { expect ( await imageCompareFullPageScreen ( 'sankey-chart-initial' ) ) . toEqual ( 0 ) ; } ) ; it ( 'should size nodes with minHeight = 56' , async ( ) => { await page . setMinHeightTo56 ( ) ; expect ( await imageCompareFullPageScreen ( 'sankey-chart-min-height-56' ) ) . toEqual ( 0 ) ; } ) ; it ( 'should size nodes with minHeight = 75' , async ( ) => { await page . setMinHeightTo75 ( ) ; expect ( await imageCompareFullPageScreen ( 'sankey-chart-min-height-75' ) ) . toEqual ( 0 ) ; } ) ; it ( 'should fail to size nodes with minHeight = 100 and fall back to minHeight = 0' , async ( ) => { await page . setMinHeightTo100 ( ) ; expect ( await imageCompareFullPageScreen ( 'sankey-chart-min-height-100' ) ) . toEqual ( 0 ) ; } ) ; } ) ;