import expect from '@kbn/expect' ; import { FtrProviderContext } from '../../../functional/ftr_provider_context' ; export default function ( { getService , getPageObjects , updateBaselines , } ) { const screenshot = getService ( 'screenshots' ) ; const browser = getService ( 'browser' ) ; const PageObjects = getPageObjects ( [ 'common' , 'maps' ] ) ; describe ( 'check Elastic Maps Server' , function ( ) { before ( async function ( ) { await PageObjects . maps . loadSavedMap ( 'EMS Test' ) ; await PageObjects . common . dismissBanner ( ) ; await browser . setScreenshotSize ( 1000 , 1000 ) ; } ) ; it ( '[ElasticMapsService] EMS Test should match screenshot' , async function ( ) { const percentDifference = await screenshot . compareAgainstBaseline ( 'ems_test' , updateBaselines ) ; expect ( percentDifference ) . to . be . lessThan ( 0.01 ) ; } ) ; } ) ; }