mirror of
https://github.com/penpot/penpot.git
synced 2025-07-19 19:07:18 +02:00
🐛 Add fixes for subscription design review (#6751)
* 🐛 Fix from subscription design review * 📎 Fixes PR feedback
This commit is contained in:
parent
67ca8ccb22
commit
1f42f032fc
24 changed files with 556 additions and 511 deletions
|
@ -1,31 +1,30 @@
|
|||
import { expect } from "@playwright/test";
|
||||
import { BaseWebSocketPage } from "./BaseWebSocketPage";
|
||||
import { DashboardPage } from "./DashboardPage";
|
||||
|
||||
export class SubscriptionProfilePage extends BaseWebSocketPage {
|
||||
export class SubscriptionProfilePage extends DashboardPage {
|
||||
static async init(page) {
|
||||
await BaseWebSocketPage.initWebSockets(page);
|
||||
await DashboardPage.initWebSockets(page);
|
||||
|
||||
await BaseWebSocketPage.mockRPC(
|
||||
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 });
|
||||
this.mainHeading = page.getByRole("heading", {
|
||||
name: "Subscription",
|
||||
level: 2,
|
||||
});
|
||||
}
|
||||
|
||||
async goToSubscriptions() {
|
||||
await this.page.goto(
|
||||
`#/settings/subscriptions`,
|
||||
);
|
||||
await this.page.goto(`#/settings/subscriptions`);
|
||||
await expect(this.mainHeading).toBeVisible();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default SubscriptionProfilePage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue