import React from 'react' ; import { shallow } from 'enzyme' ; import { SchemaErrorsCallout } from './' ; describe ( 'SchemaErrorsCallout' , ( ) => { it ( 'renders' , ( ) => { const wrapper = shallow ( < SchemaErrorsCallout viewErrorsPath = "/reindex_job/someId" / > ) ; expect ( wrapper . find ( '[data-test-subj="schemaErrorsCallout"]' ) . prop ( 'title' ) ) . toEqual ( 'There was an error during your schema reindex' ) ; expect ( wrapper . find ( '[data-test-subj="viewErrorsButton"]' ) . prop ( 'to' ) ) . toEqual ( '/reindex_job/someId' ) ; } ) ; } ) ;