import { INSPECT_MODAL , INSPECT_NETWORK_BUTTONS_IN_SECURITY } from '../../screens/inspect' ; import { cleanKibana } from '../../tasks/common' ; import { closesModal , openStatsAndTables } from '../../tasks/inspect' ; import { loginAndWaitForPage } from '../../tasks/login' ; import { NETWORK_URL } from '../../urls/navigation' ; describe ( 'Inspect' , ( ) => { context ( 'Network stats and tables' , ( ) => { before ( ( ) => { cleanKibana ( ) ; loginAndWaitForPage ( NETWORK_URL ) ; } ) ; afterEach ( ( ) => { closesModal ( ) ; } ) ; INSPECT_NETWORK_BUTTONS_IN_SECURITY . forEach ( ( table ) => it ( `inspects the ${ table . title }` , ( ) => { openStatsAndTables ( table ) ; cy . get ( INSPECT_MODAL ) . should ( 'be.visible' ) ; } ) ) ; } ) ; } ) ;