23 lines
No EOL
913 B
TypeScript
23 lines
No EOL
913 B
TypeScript
import { Page } from "@playwright/test";
|
|
import { PartQuestionsPage } from "./PartQuestionPage";
|
|
import { step } from "@business-logic/types/Step";
|
|
import { ITestData } from "@business-logic/types/ITestData";
|
|
import { ProgressBarPercentages } from "@business-logic/types/Enums";
|
|
|
|
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<ITestData>) {
|
|
const { moldingQuestions } = testCase;
|
|
|
|
await this.validateProgressBar(ProgressBarPercentages.MoldingQuestionsPage);
|
|
await this.validatePartQuestions(moldingQuestions!);
|
|
await this.selectPartQuestionResponses(moldingQuestions!);
|
|
await this.nextPage();
|
|
}
|
|
} |