2024-06-07 13:35:04 +02:00
|
|
|
import { BaseWebSocketPage } from "./BaseWebSocketPage";
|
|
|
|
|
|
|
|
export class OnboardingPage extends BaseWebSocketPage {
|
|
|
|
constructor(page) {
|
|
|
|
super(page);
|
2024-07-01 10:28:40 +02:00
|
|
|
this.submitButton = page.getByRole("Button", { name: "Next" });
|
2024-06-07 13:35:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
async fillOnboardingInputsStep1() {
|
2024-07-01 10:28:40 +02:00
|
|
|
await this.page.getByText("Personal").click();
|
|
|
|
await this.page.getByText("Select option").click();
|
|
|
|
await this.page.getByText("Testing before self-hosting").click();
|
2024-06-07 13:35:04 +02:00
|
|
|
|
|
|
|
await this.submitButton.click();
|
|
|
|
}
|
|
|
|
|
|
|
|
async fillOnboardingInputsStep2() {
|
2024-07-01 10:28:40 +02:00
|
|
|
await this.page.getByText("Figma").click();
|
2024-06-07 13:35:04 +02:00
|
|
|
|
|
|
|
await this.submitButton.click();
|
|
|
|
}
|
|
|
|
|
|
|
|
async fillOnboardingInputsStep3() {
|
2024-07-01 10:28:40 +02:00
|
|
|
await this.page.getByText("Select option").first().click();
|
|
|
|
await this.page.getByText("Product Managment").click();
|
|
|
|
await this.page.getByText("Select option").first().click();
|
|
|
|
await this.page.getByText("Director").click();
|
|
|
|
await this.page.getByText("Select option").click();
|
|
|
|
await this.page.getByText("11-30").click();
|
2024-06-07 13:35:04 +02:00
|
|
|
|
|
|
|
await this.submitButton.click();
|
|
|
|
}
|
|
|
|
|
|
|
|
async fillOnboardingInputsStep4() {
|
2024-07-01 10:28:40 +02:00
|
|
|
await this.page.getByText("Other").click();
|
|
|
|
await this.page.getByPlaceholder("Other (specify)").fill("Another");
|
2024-06-07 13:35:04 +02:00
|
|
|
await this.submitButton.click();
|
|
|
|
}
|
|
|
|
|
|
|
|
async fillOnboardingInputsStep5() {
|
2024-07-01 10:28:40 +02:00
|
|
|
await this.page.getByText("Event").click();
|
2024-06-07 13:35:04 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default OnboardingPage;
|