import { INSPECT_BUTTON_ICON , InspectButtonMetadata } from '../screens/inspect' ; export const closesModal = ( ) => { cy . get ( '[data-test-subj="modal-inspect-close"]' ) . click ( ) ; } ; export const clickInspectButton = ( container ) => { cy . get ( `${ container } ${ INSPECT_BUTTON_ICON }` ) . trigger ( 'click' , { force : true } ) ; } ; export const openStatsAndTables = ( table ) => { if ( table . tabId ) { cy . get ( table . tabId ) . click ( { force : true } ) ; } cy . get ( table . id ) ; if ( table . altInspectId ) { cy . get ( table . altInspectId ) . trigger ( 'click' , { force : true , } ) ; } else { clickInspectButton ( table . id ) ; } } ;