penpot/frontend/playwright/ui/pages/OnboardingPage.js
María Valderrama c01306734a
🐛 Fix default team and UI labels to use Personal Projects (#11418)
* 🐛 Fix default team and UI labels to use Personal Projects

* 📎 Code review
2026-08-28 14:04:56 +02:00

30 lines
818 B
JavaScript

import { BaseWebSocketPage } from "./BaseWebSocketPage";
export class OnboardingPage extends BaseWebSocketPage {
constructor(page) {
super(page);
this.submitButton = page.getByRole("Button", { name: "Next" });
}
async fillOnboardingInputsStep1() {
await this.page.getByText("Personal", { exact: true }).click();
await this.page.getByText("Select option").click();
await this.page.getByText("Product Management").click();
await this.submitButton.click();
}
async fillOnboardingInputsStep2() {
await this.page.getByText("Figma").click();
await this.submitButton.click();
}
async fillOnboardingInputsStep3() {
await this.page.getByText("Other").click();
await this.page.getByPlaceholder("Other (specify)").fill("Another");
}
}
export default OnboardingPage;