Fixup search smoke tests
This commit is contained in:
parent
58bd8e075a
commit
556e6d8310
|
@ -110,7 +110,7 @@ export class Search extends Viewlet {
|
||||||
|
|
||||||
async waitForResultText(text: string): Promise<void> {
|
async waitForResultText(text: string): Promise<void> {
|
||||||
// The label can end with " - " depending on whether the search editor is enabled
|
// 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> {
|
async waitForNoResultText(): Promise<void> {
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { Application } from '../../../../automation';
|
||||||
|
|
||||||
export function setup() {
|
export function setup() {
|
||||||
// https://github.com/microsoft/vscode/issues/115244
|
// https://github.com/microsoft/vscode/issues/115244
|
||||||
describe.skip('Search', () => {
|
describe('Search', () => {
|
||||||
after(function () {
|
after(function () {
|
||||||
const app = this.app as Application;
|
const app = this.app as Application;
|
||||||
cp.execSync('git checkout . --quiet', { cwd: app.workspacePathOrFolder });
|
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.searchFor('ydob');
|
||||||
await app.workbench.search.setReplaceText('body');
|
await app.workbench.search.setReplaceText('body');
|
||||||
await app.workbench.search.replaceFileMatch('app.js');
|
await app.workbench.search.replaceFileMatch('app.js');
|
||||||
await app.workbench.search.waitForNoResultText();
|
await app.workbench.search.waitForResultText('0 results in 0 files');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue