Add 2.0 policy info page
This commit is contained in:
parent
326bd25705
commit
368267d123
2 changed files with 20 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ import { EndorsementsPage } from "../pages/EndorsementsPage"
|
|||
import { PolicyDriverPage } from "../pages/PolicyDriverPage"
|
||||
import { ServiceZipPage } from "../pages/ServiceZipPage"
|
||||
import { MobileDetailsPage } from "pages/MobileDetailsPage";
|
||||
import { PolicyInfoPage } from "../pages/PolicyInfoPage";
|
||||
|
||||
export interface ITestPages {
|
||||
capabilityQuestionsPage: CapabilityQuestionsPage,
|
||||
|
|
@ -49,6 +50,7 @@ export interface ITestPages {
|
|||
orderConfirmationPage: OrderConfirmationPage,
|
||||
partQuestionsPage: PartQuestionsPage,
|
||||
paymentMethodPage: PaymentMethodPage,
|
||||
policyInfoPage: PolicyInfoPage,
|
||||
policyInfoSubmittedPage: PolicyInfoSubmittedPage,
|
||||
policyVehiclesPage: PolicyVehiclesPage,
|
||||
heritageProblemGlassQuestionsPage: HeritageProblemGlassQuestionsPage,
|
||||
|
|
@ -86,6 +88,7 @@ export const createTestPages: TestPagesFactory<ITestPages> = (page: Page) => {
|
|||
orderConfirmationPage: new OrderConfirmationPage(page),
|
||||
partQuestionsPage: new PartQuestionsPage(page),
|
||||
paymentMethodPage: new PaymentMethodPage(page),
|
||||
policyInfoPage: new PolicyInfoPage(page),
|
||||
policyInfoSubmittedPage: new PolicyInfoSubmittedPage(page),
|
||||
policyVehiclesPage: new PolicyVehiclesPage(page),
|
||||
heritageProblemGlassQuestionsPage: new HeritageProblemGlassQuestionsPage(page),
|
||||
|
|
|
|||
17
playwright-tests/pages/PolicyInfoPage.ts
Normal file
17
playwright-tests/pages/PolicyInfoPage.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { type Page } from '@playwright/test';
|
||||
import { BasePage } from './BasePage';
|
||||
import { step } from 'framework/localTypes/Step';
|
||||
import { ITestData } from 'framework/TestData';
|
||||
|
||||
export class PolicyInfoPage extends BasePage {
|
||||
constructor(page: Page) {
|
||||
super(page);
|
||||
|
||||
// TODO: Add locators for the page once the card is in test (CASH-2468)
|
||||
}
|
||||
|
||||
@step("PolicyInfoPage >> Continue")
|
||||
async handlePolicyInfoPage(testData: Partial<ITestData>): Promise<void> {
|
||||
await this.nextPage();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue