import { KQL_INPUT , REFRESH_BUTTON } from '../screens/security_header' ; export const clearSearchBar = ( ) => { cy . get ( KQL_INPUT ) . clear ( ) . type ( '{enter}' ) ; } ; export const kqlSearch = ( search ) => { cy . get ( KQL_INPUT ) . type ( search ) ; } ; export const navigateFromHeaderTo = ( page ) => { cy . get ( page ) . click ( { force : true } ) ; } ; export const refreshPage = ( ) => { cy . get ( REFRESH_BUTTON ) . click ( { force : true } ) . should ( 'not.have.text' , 'Updating' ) ; } ;