import { ReactWrapper } from 'enzyme' ; export abstract class BasePage { constructor ( protected wrapper ) { } protected type ( id , value ) { const input = this . wrapper . find ( `input#${ id }` ) ; input . simulate ( 'focus' ) ; input . simulate ( 'change' , { target : { value : value } } ) ; } debug ( ) { return this . wrapper . debug ( ) ; } }