Update Zod package, improve code formatting, and add awaiting indicators
This commit includes three main changes. First, it updates the Zod library from version 3.23.4 to 3.23.5 across all relevant packages. Second, code readability has been enhanced by formatting modifications in several TypeScript files. Lastly, the user feedback on certain operations such as creating a team or charging for a payment is strengthened, by displaying an awaiting indicator until the operation is complete.
This commit is contained in:
@@ -28,11 +28,11 @@ test.describe('Invitations', () => {
|
||||
|
||||
await invitations.inviteMembers(invites);
|
||||
|
||||
await expect(await invitations.getInvitations()).toHaveCount(1);
|
||||
await expect(invitations.getInvitations()).toHaveCount(1);
|
||||
|
||||
await invitations.deleteInvitation(email);
|
||||
|
||||
await expect(await invitations.getInvitations()).toHaveCount(0);
|
||||
await expect(invitations.getInvitations()).toHaveCount(0);
|
||||
});
|
||||
|
||||
test('users can update invites', async () => {
|
||||
@@ -50,7 +50,7 @@ test.describe('Invitations', () => {
|
||||
|
||||
await invitations.inviteMembers(invites);
|
||||
|
||||
await expect(await invitations.getInvitations()).toHaveCount(1);
|
||||
await expect(invitations.getInvitations()).toHaveCount(1);
|
||||
|
||||
await invitations.updateInvitation(email, 'owner');
|
||||
|
||||
@@ -92,7 +92,7 @@ test.describe('Full Invitation Flow', () => {
|
||||
|
||||
const firstEmail = invites[0]!.email;
|
||||
|
||||
await expect(await invitations.getInvitations()).toHaveCount(2);
|
||||
await expect(invitations.getInvitations()).toHaveCount(2);
|
||||
|
||||
// sign out and sign in with the first email
|
||||
await invitations.auth.signOut();
|
||||
@@ -115,6 +115,6 @@ test.describe('Full Invitation Flow', () => {
|
||||
|
||||
await invitations.teamAccounts.openAccountsSelector();
|
||||
|
||||
await expect(await invitations.teamAccounts.getTeams()).toHaveCount(1);
|
||||
await expect(invitations.teamAccounts.getTeams()).toHaveCount(1);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user