Refactor join page and update packages

The join page's redirect functionality has been replaced with permanentRedirect. Adjustments were also made for handling conditional authentication and user account verification. Package upgrades were performed and the i18n client now checks if an instance is already initialized. The process tends to deliver performance benefits and enhancing the code readability.
This commit is contained in:
giancarlo
2024-04-14 13:48:50 +08:00
parent fd890ea09d
commit 91bee99857
13 changed files with 446 additions and 422 deletions

View File

@@ -48,8 +48,10 @@ export class AuthPageObject {
await this.page.click('button[type="submit"]');
}
async visitConfirmEmailLink(email: string, params?: {
async visitConfirmEmailLink(email: string, params: {
deleteAfter: boolean
} = {
deleteAfter: true
}) {
return expect(async() => {
const res = await this.mailbox.visitMailbox(email, params);