mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-07 00:04:40 -04:00
Make waitForURL optional in signinWithEmail method in app.ts
This commit is contained in:
@@ -59,7 +59,11 @@ export class App {
|
||||
await this.auth.clickSignUpWithEmailButton()
|
||||
}
|
||||
|
||||
async signinWithEmail(accountOrEmail: UserAccountInformation | string, password?: string) {
|
||||
async signinWithEmail(
|
||||
accountOrEmail: UserAccountInformation | string,
|
||||
password?: string,
|
||||
wait: boolean = true,
|
||||
) {
|
||||
const email = typeof accountOrEmail === 'string' ? accountOrEmail : accountOrEmail.email
|
||||
|
||||
const resolvedPassword = typeof accountOrEmail === 'string' ? password : accountOrEmail.password
|
||||
@@ -72,6 +76,8 @@ export class App {
|
||||
await this.auth.fillEmailField(email)
|
||||
await this.auth.fillPasswordField(resolvedPassword)
|
||||
await this.auth.clickSignInWithEmailButton()
|
||||
await this.page.waitForURL('/')
|
||||
if (wait) {
|
||||
await this.page.waitForURL('/')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user