diff --git a/test/nbrowser/ActionLog.ts b/test/nbrowser/ActionLog.ts index 3284ec81..49459ea4 100644 --- a/test/nbrowser/ActionLog.ts +++ b/test/nbrowser/ActionLog.ts @@ -24,7 +24,7 @@ describe('ActionLog', function() { } before(async function() { - const session = await gu.session().user('user4').login(); + const session = await gu.session().user('user1').login(); await session.tempDoc(cleanup, 'Hello.grist'); await gu.dismissWelcomeTourIfNeeded(); }); diff --git a/test/nbrowser/homeUtil.ts b/test/nbrowser/homeUtil.ts index 23705852..7aa93fef 100644 --- a/test/nbrowser/homeUtil.ts +++ b/test/nbrowser/homeUtil.ts @@ -179,9 +179,13 @@ export class HomeUtil { const code = authenticator.generate(secret); await this.driver.find('input[name="verificationCode"]').sendKeys(code); await this.driver.find('.test-mfa-submit').click(); - await this.driver.wait(async () => { - return !await this.driver.findContent('.test-mfa-title', 'Almost there!').isPresent(); - }, 4000); + await this.driver.wait( + async () => { + return !await this.driver.findContent('.test-mfa-title', 'Almost there!').isPresent(); + }, + 4000, + 'Possible reason: verification code is invalid or expired (i.e. was recently used to log in)' + ); } /**