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:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user