import { ENRICHMENT_COUNT_NOTIFICATION , JSON_VIEW_WRAPPER , JSON_VIEW_TAB , TABLE_TAB , } from '../screens/alerts_details' ; export const openJsonView = ( ) => { cy . get ( JSON_VIEW_TAB ) . click ( ) ; } ; export const openTable = ( ) => { cy . get ( TABLE_TAB ) . click ( ) ; } ; export const openThreatIndicatorDetails = ( ) => { cy . get ( ENRICHMENT_COUNT_NOTIFICATION ) . click ( ) ; } ; export const scrollJsonViewToBottom = ( ) => { cy . get ( JSON_VIEW_WRAPPER ) . click ( { force : true } ) ; cy . get ( JSON_VIEW_WRAPPER ) . type ( '{pagedown}{pagedown}{pagedown}' ) ; cy . get ( JSON_VIEW_WRAPPER ) . should ( 'be.visible' ) ; } ;