Update retries in playwright config and refactor account settings

This update changes the number of retries in the Playwright configuration. Additionally, solid improvements have been made in the account settings, including better data semantics for testing, changes to email confirmation, and adding a new E2E test suite for accounts. The sign-up flow was updated and problems with multi-language support logic were fixed.
This commit is contained in:
giancarlo
2024-04-11 18:15:16 +08:00
parent a6780a80ed
commit 311086d0e7
11 changed files with 130 additions and 14 deletions

View File

@@ -43,7 +43,7 @@ export class AuthPageObject {
async visitConfirmEmailLink(email: string) {
await this.page.waitForTimeout(300);
return this.mailbox.visitMailbox(email);
await this.mailbox.visitMailbox(email);
}
createRandomEmail() {
@@ -51,4 +51,20 @@ export class AuthPageObject {
return `${value.toFixed(0)}@makerkit.dev`;
}
async signUpFlow(path: string) {
const email = this.createRandomEmail();
await this.page.goto(`/auth/sign-up?next=${path}`, {
waitUntil: 'networkidle',
});
await this.signUp({
email,
password: 'password',
repeatPassword: 'password',
});
await this.visitConfirmEmailLink(email);
}
}