mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
Some checks are pending
Commit Message Check / Check Commit Message (push) Waiting to run
* 🐛 Fix from subscription design review * 📎 Fixes PR feedback
31 lines
683 B
JavaScript
31 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;
|