🐛 Add fixes for subscription design review (#6751)

* 🐛 Fix from subscription design review

* 📎 Fixes PR feedback
This commit is contained in:
Marina López 2025-06-25 13:41:45 +02:00 committed by GitHub
parent 67ca8ccb22
commit 1f42f032fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 556 additions and 511 deletions

View file

@ -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;