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:
@@ -1,4 +1,5 @@
|
||||
import { Page } from '@playwright/test';
|
||||
|
||||
import { TeamAccountsPageObject } from '../team-accounts/team-accounts.po';
|
||||
import { BillingPageObject } from '../utils/billing.po';
|
||||
|
||||
@@ -11,7 +12,7 @@ export class TeamBillingPageObject {
|
||||
this.billing = new BillingPageObject(page);
|
||||
}
|
||||
|
||||
async setup() {
|
||||
await this.teamAccounts.setup();
|
||||
setup() {
|
||||
return this.teamAccounts.setup();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,10 +11,11 @@ test.describe('Team Billing', () => {
|
||||
po = new TeamBillingPageObject(page);
|
||||
|
||||
await po.setup();
|
||||
await po.teamAccounts.goToBilling();
|
||||
});
|
||||
|
||||
test('a team can subscribe to a plan', async () => {
|
||||
await po.teamAccounts.goToBilling();
|
||||
|
||||
await po.billing.selectPlan(0);
|
||||
await po.billing.proceedToCheckout();
|
||||
|
||||
@@ -27,7 +28,7 @@ test.describe('Team Billing', () => {
|
||||
|
||||
await po.billing.returnToBilling();
|
||||
|
||||
await expect(await po.billing.getStatus()).toContainText('Active');
|
||||
await expect(po.billing.getStatus()).toContainText('Active');
|
||||
await expect(po.billing.manageBillingButton()).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user