From cceda8e2f2f1156a825cedb02901285393239b22 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Wed, 13 Mar 2019 18:55:30 +0000 Subject: [PATCH] Fix #70389 - fix search smoke test --- test/smoke/src/areas/search/search.test.ts | 6 +++--- test/smoke/src/areas/search/search.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/smoke/src/areas/search/search.test.ts b/test/smoke/src/areas/search/search.test.ts index cbc59ca3059..f19cc569596 100644 --- a/test/smoke/src/areas/search/search.test.ts +++ b/test/smoke/src/areas/search/search.test.ts @@ -19,7 +19,7 @@ export function setup() { await app.workbench.search.openSearchViewlet(); await app.workbench.search.searchFor('body'); - await app.workbench.search.waitForResultText('21 results in 6 files'); + await app.workbench.search.waitForResultText('16 results in 5 files'); }); it('searches only for *.js files & checks for correct result number', async function () { @@ -38,7 +38,7 @@ export function setup() { const app = this.app as Application; await app.workbench.search.searchFor('body'); await app.workbench.search.removeFileMatch('app.js'); - await app.workbench.search.waitForResultText('17 results in 5 files'); + await app.workbench.search.waitForResultText('12 results in 4 files'); }); it('replaces first search result with a replace term', async function () { @@ -48,7 +48,7 @@ export function setup() { await app.workbench.search.expandReplace(); await app.workbench.search.setReplaceText('ydob'); await app.workbench.search.replaceFileMatch('app.js'); - await app.workbench.search.waitForResultText('17 results in 5 files'); + await app.workbench.search.waitForResultText('16 results in 5 files'); await app.workbench.search.searchFor('ydob'); await app.workbench.search.setReplaceText('body'); diff --git a/test/smoke/src/areas/search/search.ts b/test/smoke/src/areas/search/search.ts index 5a5ee83356e..8a0108fd64e 100644 --- a/test/smoke/src/areas/search/search.ts +++ b/test/smoke/src/areas/search/search.ts @@ -6,7 +6,7 @@ import { Viewlet } from '../workbench/viewlet'; import { Code } from '../../vscode/code'; -const VIEWLET = 'div[id="workbench.view.search"].search-view'; +const VIEWLET = '.search-view'; const INPUT = `${VIEWLET} .search-widget .search-container .monaco-inputbox textarea`; const INCLUDE_INPUT = `${VIEWLET} .query-details .file-types.includes .monaco-inputbox input`; const FILE_MATCH = filename => `${VIEWLET} .results .filematch[data-resource$="${filename}"]`;