import { expect } from "chai" ; import { InputBox , Workbench } from "vscode-extension-tester" ; describe ( 'Sample Inputs tests' , ( ) => { let input ; before ( async ( ) => { await new Workbench ( ) . openCommandPrompt ( ) ; input = await InputBox . create ( ) ; } ) ; it ( 'Text manipulation' , async ( ) => { await input . setText ( 'hello' ) ; const text = await input . getText ( ) ; expect ( text ) . equals ( 'hello' ) ; await input . clear ( ) ; } ) ; it ( 'Quick picks' , async ( ) => { await input . setText ( '> hello world' ) ; const picks = await input . getQuickPicks ( ) ; expect ( picks ) . not . empty ; const pick = await input . findQuickPick ( 'Hello World' ) ; } ) ; it ( 'Flow actions' , async ( ) => { await input . cancel ( ) ; } ) ; } ) ;