import { KIBANA_NAVIGATION_TOGGLE , SPACES_BUTTON , getGoToSpaceMenuItem , } from '../screens/kibana_navigation' ; export const navigateFromKibanaCollapsibleTo = ( page ) => { cy . get ( page ) . click ( ) ; } ; export const openKibanaNavigation = ( ) => { cy . get ( KIBANA_NAVIGATION_TOGGLE ) . click ( ) ; } ; export const changeSpace = ( space ) => { cy . get ( `${ SPACES_BUTTON }` ) . click ( ) ; cy . get ( getGoToSpaceMenuItem ( space ) ) . click ( ) ; cy . get ( `[data-test-subj="space-avatar-${ space }"]` ) . should ( 'exist' ) ; } ;