This commit introduces end-to-end tests for the user and team billing features. It also enhances existing billing configurations, logging, and error handling mechanisms. Refactoring has been done to simplify the code and make it more readable. Adjustments have also been made in the visual aspects of some components. The addition of these tests will help ensure the reliability of the billing features.
18 lines
552 B
TypeScript
18 lines
552 B
TypeScript
import { Page } from '@playwright/test';
|
|
import { StripePageObject } from '../utils/stripe.po';
|
|
import { TeamAccountsPageObject } from '../team-accounts/team-accounts.po';
|
|
|
|
export class TeamBillingPageObject {
|
|
private readonly teamAccounts: TeamAccountsPageObject;
|
|
public readonly stripe: StripePageObject;
|
|
|
|
constructor(page: Page) {
|
|
this.teamAccounts = new TeamAccountsPageObject(page);
|
|
this.stripe = new StripePageObject(page);
|
|
}
|
|
|
|
async setup() {
|
|
await this.teamAccounts.setup();
|
|
await this.teamAccounts.goToBilling();
|
|
}
|
|
} |