@@ -61,7 +61,7 @@ suite("Commands Tests", () => {
6161 assert . equal ( repository . changes . resourceStates . length , 1 ) ;
6262 } ) ;
6363
64- test ( "Commit File" , async function ( ) {
64+ test ( "Commit Single File" , async function ( ) {
6565 const repository = sourceControlManager . getRepository (
6666 checkoutDir
6767 ) as Repository ;
@@ -165,11 +165,33 @@ suite("Commands Tests", () => {
165165 assert . equal ( repository . changes . resourceStates . length , 0 ) ;
166166 } ) ;
167167
168- test ( "Commit File" , async function ( ) {
168+ test ( "Commit Multiple" , async function ( ) {
169+ const file1 = path . join ( checkoutDir . fsPath , "file1.txt" ) ;
170+ fs . writeFileSync ( file1 , "test" ) ;
171+ await commands . executeCommand ( "svn.openFile" , Uri . file ( file1 ) ) ;
172+
173+ const file2 = path . join ( checkoutDir . fsPath , "file2.txt" ) ;
174+ fs . writeFileSync ( file2 , "test" ) ;
175+ await commands . executeCommand ( "svn.openFile" , Uri . file ( file2 ) ) ;
176+
169177 const repository = sourceControlManager . getRepository (
170178 checkoutDir
171179 ) as Repository ;
172- repository . inputBox . value = "First Commit" ;
180+ repository . inputBox . value = "Multiple Files Commit" ;
181+
182+ await commands . executeCommand ( "svn.refresh" ) ;
183+ await commands . executeCommand (
184+ "svn.add" ,
185+ repository . unversioned . resourceStates [ 0 ]
186+ ) ;
187+ await commands . executeCommand ( "svn.refresh" ) ;
188+ await commands . executeCommand (
189+ "svn.add" ,
190+ repository . unversioned . resourceStates [ 0 ]
191+ ) ;
192+ await commands . executeCommand ( "svn.refresh" ) ;
193+
194+ testUtil . overrideNextShowQuickPick ( 0 ) ;
173195
174196 await commands . executeCommand ( "svn.commitWithMessage" ) ;
175197 } ) ;
0 commit comments