import { Browser , Element } from 'webdriverio' ; import { clickOn , showText , sleep } from '../util' ; export async function showOffDiffCapability ( browser ) { await showText ( 'Compare messages' , 2000 , browser , 'top' ) ; await showText ( 'Show raw message' , 2000 , browser , 'bottom' ) ; const rawMessage = await browser . $ ( '#valueRendererDisplayMode-raw' ) ; await clickOn ( rawMessage , browser ) ; await sleep ( 1000 ) ; await showText ( 'Compare with others' , 2000 , browser , 'bottom' ) ; const diffMessages = await browser . $ ( '#valueRendererDisplayMode-diff' ) ; await clickOn ( diffMessages , browser ) ; }