import { Page } from "@playwright/test"; import { PartQuestionsPage } from "./PartQuestionPage"; import { step } from "@business-logic/types/Step"; import { ITestData } from "@business-logic/types/ITestData"; export default class MoldingQuestionsPage extends PartQuestionsPage { url = process.env['BASE_URL']! + '/fmg/?fmgPage=molding-questions'; constructor(page: Page) { super(page); } @step("MoldingQuestionsPage >> Select Molding Questions: ") async handleMoldingQuestionsPage(testCase: Partial) { const { moldingQuestions } = testCase; await this.validatePartQuestions(moldingQuestions!); await this.selectPartQuestionResponses(moldingQuestions!); await this.nextPage(); } }