import { Application , Terminal , TerminalCommandId , Logger } from '../../../../automation' ; import { installAllHandlers } from '../../utils' ; import { setup as setupTerminalEditorsTests } from './terminal-editors.test' ; import { setup as setupTerminalInputTests } from './terminal-input.test' ; import { setup as setupTerminalPersistenceTests } from './terminal-persistence.test' ; import { setup as setupTerminalProfileTests } from './terminal-profiles.test' ; import { setup as setupTerminalTabsTests } from './terminal-tabs.test' ; export function setup ( logger ) { describe ( 'Terminal' , function ( ) { this . retries ( 3 ) ; installAllHandlers ( logger ) ; let terminal ; before ( async function ( ) { const app = this . app as Application ; terminal = app . workbench . terminal ; await app . workbench . settingsEditor . addUserSetting ( 'terminal.integrated.tabs.hideCondition' , '"never"' ) ; await app . workbench . settingsEditor . addUserSetting ( 'terminal.integrated.gpuAcceleration' , '"off"' ) ; await app . workbench . quickaccess . runCommand ( 'workbench.action.closeAllEditors' ) ; } ) ; afterEach ( async ( ) => { await terminal . runCommand ( TerminalCommandId . KillAll ) ; } ) ; setupTerminalEditorsTests ( ) ; setupTerminalInputTests ( ) ; setupTerminalPersistenceTests ( ) ; setupTerminalProfileTests ( ) ; setupTerminalTabsTests ( ) ; } ) ; }