DigitalConsumer.FixMyGlass/playwright-tests/pages/PolicyInfoPage.ts

20 lines
712 B
TypeScript

import { expect, type Page } from '@playwright/test';
import { BasePage } from './BasePage';
import { step } from 'framework/localTypes/Step';
import { TestSuccessAlert } from 'safelite-playwright-core';
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 expect(this.page).toHaveURL(/\/fmg\/policy-info/);
throw new TestSuccessAlert('Policy info page validated successfully.');
}
}