Fixup search smoke tests

This commit is contained in:
Jackson Kearl 2021-03-09 12:50:28 -08:00
parent 58bd8e075a
commit 556e6d8310
No known key found for this signature in database
GPG key ID: DA09A59C409FC400
2 changed files with 3 additions and 3 deletions

View file

@ -110,7 +110,7 @@ export class Search extends Viewlet {
async waitForResultText(text: string): Promise<void> {
// 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<void> {

View file

@ -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');
});
});