Skip to content

Commit 049ac55

Browse files
authored
delete quick pick user ordered values test (#5684)
1 parent 8448e14 commit 049ac55

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

extension/src/test/suite/vscode/quickPick.test.ts

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -190,44 +190,5 @@ suite('Quick Pick Test Suite', () => {
190190

191191
expect(result).to.deep.equal(undefined)
192192
})
193-
194-
it('should limit the number of values that can be selected to the max selected items', async () => {
195-
const quickPick = disposable.track(
196-
window.createQuickPick<QuickPickItemWithValue<number>>()
197-
)
198-
stub(window, 'createQuickPick').returns(quickPick)
199-
200-
const maxSelectedItems = 3
201-
202-
const items = [
203-
{ label: 'A', value: 1 },
204-
{ label: 'B', value: 2 },
205-
{ label: 'C', value: 3 },
206-
{ label: 'D', value: 4 },
207-
{ label: 'E', value: 5 }
208-
]
209-
210-
void quickPickUserOrderedValues(
211-
items,
212-
{ title: 'select up to 3 values' as Title },
213-
maxSelectedItems
214-
)
215-
216-
await selectMultipleQuickPickItems(
217-
[5, 2, 1],
218-
items.length,
219-
quickPick,
220-
false
221-
)
222-
223-
expect(
224-
quickPick.selectedItems,
225-
'the max number of items are selected'
226-
).to.have.lengthOf(maxSelectedItems)
227-
expect(
228-
quickPick.items,
229-
'all items which could be selected are hidden'
230-
).to.have.lengthOf(maxSelectedItems)
231-
}).timeout(10000)
232193
})
233194
})

0 commit comments

Comments
 (0)