Skip to content

Commit 06b06ca

Browse files
author
Benjamin Pasero
committed
smoke - move quick open tests into search
1 parent b7a29c7 commit 06b06ca

3 files changed

Lines changed: 32 additions & 42 deletions

File tree

test/smoke/src/areas/explorer/explorer.test.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

test/smoke/src/areas/search/search.test.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,36 @@ export function setup() {
5656
await app.workbench.search.waitForNoResultText();
5757
});
5858
});
59+
60+
describe('Quick Open', () => {
61+
it('quick open search produces correct result', async function () {
62+
const app = this.app as Application;
63+
const expectedNames = [
64+
'.eslintrc.json',
65+
'tasks.json',
66+
'app.js',
67+
'index.js',
68+
'users.js',
69+
'package.json',
70+
'jsconfig.json'
71+
];
72+
73+
await app.workbench.quickopen.openQuickOpen('.js');
74+
await app.workbench.quickopen.waitForQuickOpenElements(names => expectedNames.every(n => names.some(m => n === m)));
75+
await app.code.dispatchKeybinding('escape');
76+
});
77+
78+
it('quick open respects fuzzy matching', async function () {
79+
const app = this.app as Application;
80+
const expectedNames = [
81+
'tasks.json',
82+
'app.js',
83+
'package.json'
84+
];
85+
86+
await app.workbench.quickopen.openQuickOpen('a.s');
87+
await app.workbench.quickopen.waitForQuickOpenElements(names => expectedNames.every(n => names.some(m => n === m)));
88+
await app.code.dispatchKeybinding('escape');
89+
});
90+
});
5991
}

test/smoke/src/main.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import {
2323

2424
import { setup as setupDataMigrationTests } from './areas/workbench/data-migration.test';
2525
import { setup as setupDataLossTests } from './areas/workbench/data-loss.test';
26-
import { setup as setupDataExplorerTests } from './areas/explorer/explorer.test';
2726
import { setup as setupDataPreferencesTests } from './areas/preferences/preferences.test';
2827
import { setup as setupDataSearchTests } from './areas/search/search.test';
2928
import { setup as setupDataCSSTests } from './areas/css/css.test';
@@ -311,7 +310,6 @@ describe(`VSCode Smoke Tests (${opts.web ? 'Web' : 'Electron'})`, () => {
311310
else {
312311
if (!opts.web) { setupDataMigrationTests(opts['stable-build'], testDataPath); }
313312
if (!opts.web) { setupDataLossTests(); }
314-
setupDataExplorerTests();
315313
if (!opts.web) { setupDataPreferencesTests(); }
316314
setupDataSearchTests();
317315
setupDataCSSTests();

0 commit comments

Comments
 (0)