Add account deletion process and improve tests
The commit introduces a message to indicate the account deletion process. It also enhances the tests by reducing code redundancy in the e2e tests, creating a more random name for team accounts, and improving the navigation process after account deletions. The commit also includes code cleanup tasks, such as the removal of unused imports.
This commit is contained in:
@@ -37,10 +37,6 @@ export class TeamAccountsPageObject {
|
||||
await this.page.click('[data-test="create-team-account-trigger"]');
|
||||
await this.page.fill('[data-test="create-team-form"] input', teamName);
|
||||
await this.page.click('[data-test="create-team-form"] button:last-child');
|
||||
|
||||
await this.page.waitForURL(`http://localhost:3000/home/${slug}`, {
|
||||
timeout: 5000,
|
||||
});
|
||||
}
|
||||
|
||||
async updateName(name: string) {
|
||||
@@ -58,7 +54,7 @@ export class TeamAccountsPageObject {
|
||||
}
|
||||
|
||||
createTeamName() {
|
||||
const random = (Math.random() * 10).toFixed(0);
|
||||
const random = (Math.random() * 100000000).toFixed(0);
|
||||
|
||||
const teamName = `Team-Name-${random}`;
|
||||
const slug = `team-name-${random}`;
|
||||
|
||||
Reference in New Issue
Block a user