diff --git a/test/automation/src/search.ts b/test/automation/src/search.ts index eaeda7819b9..962b489970f 100644 --- a/test/automation/src/search.ts +++ b/test/automation/src/search.ts @@ -114,7 +114,7 @@ export class Search extends Viewlet { } async waitForNoResultText(): Promise { - await this.code.waitForElement(`${VIEWLET} .messages[aria-hidden="true"] .message>span`); + await this.code.waitForTextContent(`${VIEWLET} .messages`, ''); } private async waitForInputFocus(selector: string): Promise {