Files
myeasycms-v2/apps/e2e/tests/team-billing/team-billing.po.ts
giancarlo 0824ac8e9f Refactor billing process in e2e tests
Code for billing process was refactored in end-to-end tests for clean code and better structure. In the described tests, related codes and classes have been moved to a new class named BillingPageObject. All corresponding calls were updated accordingly.
2024-04-14 17:54:15 +08:00

17 lines
514 B
TypeScript

import { Page } from '@playwright/test';
import { TeamAccountsPageObject } from '../team-accounts/team-accounts.po';
import { BillingPageObject } from '../utils/billing.po';
export class TeamBillingPageObject {
public readonly teamAccounts: TeamAccountsPageObject;
public readonly billing: BillingPageObject;
constructor(page: Page) {
this.teamAccounts = new TeamAccountsPageObject(page);
this.billing = new BillingPageObject(page);
}
async setup() {
await this.teamAccounts.setup();
}
}