DigitalConsumer.FixMyGlass/playwright-tests/pages/RecalibrationInfoPage.ts
maguire-arman 458e552d6b Removes URL declaration from page classes
Removes the explicit URL declaration from the page classes.

The URL validation and navigation are now handled directly within the tests, providing greater flexibility and control over test execution and removing the need to manage URLs within each page object.
2025-07-14 16:13:56 -04:00

19 lines
No EOL
548 B
TypeScript

import { Locator, Page } from "@playwright/test";
import { InsuranceBasePage } from "./InsuranceBasePage";
import { step } from 'framework/localTypes/Step';
export default class RecalibrationInfoPage extends InsuranceBasePage {
readonly continueButton: Locator;
constructor(page: Page) {
super(page);
this.continueButton = page.getByRole('button', { name: 'Continue' });
}
@step("RecalibrationInfoPage >> Click continue button: ")
async handleRecalibrationInfoPage() {
await this.nextPage();
}
}