import { browser , by , element } from 'protractor' ; export class SankeyChartPage { chart = element ( by . id ( 'sankey-chart' ) ) ; async getPage ( ) { await browser . get ( '#/sankey-chart' ) ; } async setMinHeightTo56 ( ) { await this . clickButton ( 'set-min-height-56' ) ; } async setMinHeightTo75 ( ) { await this . clickButton ( 'set-min-height-75' ) ; } async setMinHeightTo100 ( ) { await this . clickButton ( 'set-min-height-100' ) ; } async clickButton ( id ) { await element ( by . id ( id ) ) . click ( ) ; } }