@@ -61,7 +61,7 @@ suite("Commands Tests", () => {
61
61
assert . equal ( repository . changes . resourceStates . length , 1 ) ;
62
62
} ) ;
63
63
64
- test ( "Commit File" , async function ( ) {
64
+ test ( "Commit Single File" , async function ( ) {
65
65
const repository = sourceControlManager . getRepository (
66
66
checkoutDir
67
67
) as Repository ;
@@ -165,11 +165,33 @@ suite("Commands Tests", () => {
165
165
assert . equal ( repository . changes . resourceStates . length , 0 ) ;
166
166
} ) ;
167
167
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
+
169
177
const repository = sourceControlManager . getRepository (
170
178
checkoutDir
171
179
) 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 ) ;
173
195
174
196
await commands . executeCommand ( "svn.commitWithMessage" ) ;
175
197
} ) ;
0 commit comments