diff --git a/test/functional/page_objects/console_page.ts b/test/functional/page_objects/console_page.ts index d857270707ad..de1f02df4215 100644 --- a/test/functional/page_objects/console_page.ts +++ b/test/functional/page_objects/console_page.ts @@ -238,19 +238,11 @@ export class ConsolePageObject extends FtrService { } public async hasInvalidSyntax() { - try { - return await this.find.existsByCssSelector('.ace_invalid'); - } catch (e) { - return false; - } + return await this.find.existsByCssSelector('.ace_invalid'); } public async hasErrorMarker() { - try { - return await this.find.existsByCssSelector('.ace_error'); - } catch (e) { - return false; - } + return await this.find.existsByCssSelector('.ace_error'); } public async clickFoldWidget() {