Adding back some missing errors from flow

This commit is contained in:
Collin Duncan 2023-06-28 16:53:28 +02:00
parent bdcf1b753f
commit d947ad488f
No known key found for this signature in database

View file

@ -76,19 +76,19 @@ export class BaanReserverenService {
.waitForSelector('input[name=username]')
.then((i) => i?.type(username))
.catch((e: Error) => {
// throw new RunnerLoginUsernameInputError(e)
throw new RunnerLoginUsernameInputError(e)
})
await this.page
.$('input[name=password]')
.then((i) => i?.type(password))
.catch((e: Error) => {
// throw new RunnerLoginPasswordInputError(e)
throw new RunnerLoginPasswordInputError(e)
})
await this.page
.$('button')
.then((b) => b?.click())
.catch((e: Error) => {
// throw new RunnerLoginSubmitError(e)
throw new RunnerLoginSubmitError(e)
})
this.startSession(username)
}