From 556e6d8310f81d3f535726f1a467347e9e538680 Mon Sep 17 00:00:00 2001 From: Jackson Kearl Date: Tue, 9 Mar 2021 12:50:28 -0800 Subject: [PATCH] Fixup search smoke tests --- test/automation/src/search.ts | 2 +- test/smoke/src/areas/search/search.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/automation/src/search.ts b/test/automation/src/search.ts index 962b489970f..ec0078d11ba 100644 --- a/test/automation/src/search.ts +++ b/test/automation/src/search.ts @@ -110,7 +110,7 @@ export class Search extends Viewlet { async waitForResultText(text: string): Promise { // The label can end with " - " depending on whether the search editor is enabled - await this.code.waitForTextContent(`${VIEWLET} .messages .message>span`, undefined, result => result.startsWith(text)); + await this.code.waitForTextContent(`${VIEWLET} .messages .message`, undefined, result => result.startsWith(text)); } async waitForNoResultText(): Promise { diff --git a/test/smoke/src/areas/search/search.test.ts b/test/smoke/src/areas/search/search.test.ts index af33521cf05..7b864b8bc74 100644 --- a/test/smoke/src/areas/search/search.test.ts +++ b/test/smoke/src/areas/search/search.test.ts @@ -8,7 +8,7 @@ import { Application } from '../../../../automation'; export function setup() { // https://github.com/microsoft/vscode/issues/115244 - describe.skip('Search', () => { + describe('Search', () => { after(function () { const app = this.app as Application; cp.execSync('git checkout . --quiet', { cwd: app.workspacePathOrFolder }); @@ -54,7 +54,7 @@ export function setup() { await app.workbench.search.searchFor('ydob'); await app.workbench.search.setReplaceText('body'); await app.workbench.search.replaceFileMatch('app.js'); - await app.workbench.search.waitForNoResultText(); + await app.workbench.search.waitForResultText('0 results in 0 files'); }); });