Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Ibragimov committed Jul 22, 2022
1 parent 3a57718 commit cecaa54
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions test/functional/page_objects/console_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit cecaa54

Please sign in to comment.