import { setupEnvironment } from '../helpers' ; import { OverviewTestBed , setupOverviewPage } from './overview.helpers' ; describe ( 'Overview Page' , ( ) => { let testBed ; const { server } = setupEnvironment ( ) ; beforeEach ( async ( ) => { testBed = await setupOverviewPage ( ) ; testBed . component . update ( ) ; } ) ; afterAll ( ( ) => { server . restore ( ) ; } ) ; describe ( 'Documentation links' , ( ) => { test ( 'Has a whatsNew link and it references target version' , ( ) => { const { exists , find } = testBed ; expect ( exists ( 'whatsNewLink' ) ) . toBe ( true ) ; expect ( find ( 'whatsNewLink' ) . text ( ) ) . toContain ( '8' ) ; } ) ; test ( 'Has a link for upgrade assistant in page header' , ( ) => { const { exists } = testBed ; expect ( exists ( 'documentationLink' ) ) . toBe ( true ) ; } ) ; } ) ; } ) ;