DigitalConsumer.FixMyGlass/playwright-tests/pages/PolicyInfoSubmittedPage.ts
Scott Kiener de2f501773 Revert "Merge pull request #2458 from Safelite/feature/CASH-530"
This reverts commit dafc79cd64, reversing
changes made to 8ae73d4b6b.
2025-04-30 10:01:27 -04:00

24 lines
No EOL
902 B
TypeScript

import { expect, type Locator, type Page } from '@playwright/test';
import { InsuranceBasePage } from './InsuranceBasePage';
export class PolicyInfoSubmittedPage extends InsuranceBasePage {
readonly page: Page;
readonly policyInfoMessage: Locator;
url = process.env['BASE_URL']! + '/FixMyGlass/PolicyInfoSubmitted.aspx';
constructor(page: Page) {
super(page);
this.page = page;
this.policyInfoMessage = this.page.getByRole('heading', { name: 'Your policy and vehicle' });
// this.validateURL(this.url);
}
async verifyPolicyInfoSubmitted(): Promise<void> {
await expect(this.policyInfoMessage).toBeVisible();
const policyInfoMessage = await this.policyInfoMessage.textContent();
expect(policyInfoMessage).toBe("Your policy and vehicle information has been submitted for coverage verification")
}
}