Skip to content

Commit 6e5357c

Browse files
committed
fix vscode integration tests - altered quickpick behaviour
1 parent 9ed8fe8 commit 6e5357c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

extension/src/test/suite/util.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,8 @@ const toggleQuickPickItem = async (
108108
itemsLength: number,
109109
quickPick: NumberQuickPick
110110
) => {
111-
for (let itemInd = 1; itemInd <= itemsLength; itemInd++) {
112-
await commands.executeCommand('workbench.action.quickOpenSelectNext')
113-
111+
for (let itemInd = 1; itemInd <= itemsLength + 1; itemInd++) {
112+
await commands.executeCommand('workbench.action.quickOpenNavigateNext')
114113
if (itemInd === number) {
115114
const selectionEvent = getQuickPickSelectionEvent(quickPick, numberInd)
116115
await commands.executeCommand('workbench.action.quickPickManyToggle')

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ suite('Quick Pick Test Suite', () => {
142142
})
143143
})
144144

145-
describe('quickPickUserOrderedValues', () => {
145+
describe.only('quickPickUserOrderedValues', () => {
146146
it('should return selected values in the order that the user selected', async () => {
147147
const quickPick = disposable.track(
148148
window.createQuickPick<QuickPickItemWithValue<number>>()

0 commit comments

Comments
 (0)