Add data testing attributes and adapt tests for team account invitations
This commit adds data testing attributes to key elements in the team account invitations features. It also modifies e2e tests to make use of these attributes. Additionally, it introduces minor tweaks to other parts of the system to better facilitate testing, such as adjustments in timeouts and update of some log messages.
This commit is contained in:
@@ -27,7 +27,7 @@ export class AuthPageObject {
|
||||
email: string,
|
||||
password: string
|
||||
}) {
|
||||
await this.page.waitForTimeout(100);
|
||||
await this.page.waitForTimeout(1000);
|
||||
|
||||
await this.page.fill('input[name="email"]', params.email);
|
||||
await this.page.fill('input[name="password"]', params.password);
|
||||
@@ -39,7 +39,7 @@ export class AuthPageObject {
|
||||
password: string,
|
||||
repeatPassword: string
|
||||
}) {
|
||||
await this.page.waitForTimeout(100);
|
||||
await this.page.waitForTimeout(1000);
|
||||
|
||||
await this.page.fill('input[name="email"]', params.email);
|
||||
await this.page.fill('input[name="password"]', params.password);
|
||||
@@ -47,7 +47,9 @@ export class AuthPageObject {
|
||||
await this.page.click('button[type="submit"]');
|
||||
}
|
||||
|
||||
async visitConfirmEmailLink(email: string) {
|
||||
async visitConfirmEmailLink(email: string, params?: {
|
||||
deleteAfter: boolean
|
||||
}) {
|
||||
return expect(async() => {
|
||||
const res = await this.mailbox.visitMailbox(email);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user