Refactor E2E tests, update utils, and modify plan-picker validation
Several changes have been made to optimize the testing and validation workflows. The end-to-end tests for user billing, invitations, account, team billing, and team accounts have been retouched for improved performance and better accuracy. There has been a minor modification in the validation rules for plan-picker in the billing component. Furthermore, modifications are made to several utility functions to fine-tune their operations.
This commit is contained in:
@@ -17,14 +17,14 @@ test.describe('Team Accounts', () => {
|
||||
const { teamName, slug } = teamAccounts.createTeamName();
|
||||
|
||||
await teamAccounts.goToSettings();
|
||||
await teamAccounts.updateName(teamName);
|
||||
await teamAccounts.updateName(teamName, slug);
|
||||
|
||||
// the slug should be updated to match the new team name
|
||||
await page.waitForURL(`http://localhost:3000/home/${slug}/settings`);
|
||||
|
||||
await teamAccounts.openAccountsSelector();
|
||||
|
||||
await expect(teamAccounts.getTeamFromSelector(slug)).toBeVisible();
|
||||
await expect(teamAccounts.getTeamFromSelector(teamName)).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -40,7 +40,7 @@ test.describe('Account Deletion', () => {
|
||||
await teamAccounts.openAccountsSelector();
|
||||
|
||||
await expect(
|
||||
teamAccounts.getTeamFromSelector(params.slug),
|
||||
teamAccounts.getTeamFromSelector(params.teamName),
|
||||
).not.toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user