(core) Add missing .isPresent() to isOnTestLoginPage

Summary:
A staging test was failing because the util was throwing instead
of returning true or false.

Test Plan: N/A (fixing test)

Reviewers: paulfitz

Reviewed By: paulfitz

Subscribers: paulfitz

Differential Revision: https://phab.getgrist.com/D3301
This commit is contained in:
George Gevoian 2022-03-02 09:46:18 -08:00
parent 70373550cf
commit cc1af85594

View File

@ -271,7 +271,7 @@ export class HomeUtil {
* Returns whether we are currently on the test login page.
*/
public async isOnTestLoginPage() {
return await this.driver.findContent('h1', 'A Very Credulous Login Page');
return this.driver.findContent('h1', 'A Very Credulous Login Page').isPresent();
}
/**