mirror of
https://github.com/penpot/penpot.git
synced 2025-05-09 13:26:40 +02:00
* ✨ Optimize profile setup flow for better user experience * 📎 Remove extra onboarding step * 📎 Code review * 📎 Update changelog --------- Co-authored-by: Andrey Antukh <niwi@niwi.nz>
29 lines
800 B
JavaScript
29 lines
800 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").click();
|
|
await this.page.getByText("Select option").click();
|
|
await this.page.getByText("Product Managment").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;
|