import { TOASTER } from '../../screens/configure_cases' ; import { ADD_TO_TIMELINE , COPY , FILTER_IN , FILTER_OUT , IPS_TABLE_LOADED , SHOW_TOP_FIELD , EXPAND_OVERFLOW_ITEMS , } from '../../screens/network/flows' ; export const waitForIpsTableToBeLoaded = ( ) => { cy . get ( IPS_TABLE_LOADED ) . should ( 'exist' ) ; } ; export const openHoverActions = ( ) => { cy . get ( TOASTER ) . should ( 'not.exist' , { timeout : 12000 } ) ; cy . get ( EXPAND_OVERFLOW_ITEMS ) . click ( { scrollBehavior : 'center' } ) ; } ; export const clickOnFilterIn = ( ) => { cy . get ( FILTER_IN ) . first ( ) . click ( ) ; } ; export const clickOnFilterOut = ( ) => { cy . get ( FILTER_OUT ) . first ( ) . click ( ) ; } ; export const clickOnAddToTimeline = ( ) => { cy . get ( ADD_TO_TIMELINE ) . first ( ) . click ( ) ; } ; export const clickOnShowTopN = ( ) => { cy . get ( SHOW_TOP_FIELD ) . first ( ) . click ( ) ; } ; export const clickOnCopyValue = ( ) => { cy . get ( COPY ) . first ( ) . invoke ( 'focus' ) . click ( { force : true } ) ; } ;