mirror of
https://github.com/penpot/penpot.git
synced 2025-07-08 23:37:16 +02:00
30 lines
683 B
JavaScript
30 lines
683 B
JavaScript
import { expect } from "@playwright/test";
|
|
import { DashboardPage } from "./DashboardPage";
|
|
|
|
export class SubscriptionProfilePage extends DashboardPage {
|
|
static async init(page) {
|
|
await DashboardPage.initWebSockets(page);
|
|
|
|
await DashboardPage.mockRPC(
|
|
page,
|
|
"get-owned-teams",
|
|
"subscription/get-owned-teams.json",
|
|
);
|
|
}
|
|
|
|
constructor(page) {
|
|
super(page);
|
|
|
|
this.mainHeading = page.getByRole("heading", {
|
|
name: "Subscription",
|
|
level: 2,
|
|
});
|
|
}
|
|
|
|
async goToSubscriptions() {
|
|
await this.page.goto(`#/settings/subscriptions`);
|
|
await expect(this.mainHeading).toBeVisible();
|
|
}
|
|
}
|
|
|
|
export default SubscriptionProfilePage;
|