From 7481aff268fb0201428c35dbebda97b32ac3eb3f Mon Sep 17 00:00:00 2001 From: JennyNou <167806377+JennyNou@users.noreply.github.com> Date: Tue, 10 Mar 2026 14:16:53 -0400 Subject: [PATCH] Add OEM validation --- playwright-tests/pages/CoverageStatementPage.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/playwright-tests/pages/CoverageStatementPage.ts b/playwright-tests/pages/CoverageStatementPage.ts index 3bce4330..0a8b2553 100644 --- a/playwright-tests/pages/CoverageStatementPage.ts +++ b/playwright-tests/pages/CoverageStatementPage.ts @@ -14,6 +14,7 @@ export class CoverageStatementPage extends BasePage { readonly headerForITAC: Locator; // For ITAC when coverage is found readonly headerForNoComp: Locator; // For NoComp when coverage is found readonly unverifiedCoverageHeader: Locator; // For essential flows when verifying deductible + readonly oemBullet: Locator; // For OEM bullet when OEM endorsement is present readonly continueSchedulingButton: Locator; // For ITAC/NoComp readonly continueButton: Locator; // For essential flows issPageValue = 'coverage-statement'; @@ -32,6 +33,7 @@ export class CoverageStatementPage extends BasePage { this.unverifiedCoverageHeader = this.page.getByRole('heading', { level: 5, name: "We’re verifying your coverage" }); this.headerForITAC = this.page.getByRole('heading', { name: 'Good news! Safelite\'s price is lower than your deductible' }); this.headerForNoComp = this.page.getByRole('heading', { name: 'Looks like your policy doesn\'t include comprehensive coverage.\nSafelite can still get you fixed up and safely back on the road.' }); + this.oemBullet = this.page.getByText('OEM (Original Equipment Manufacturer) glass replacement is included under your policy and will be installed in your vehicle.'); this.continueSchedulingButton = page.getByRole('button', { name: 'Continue scheduling' }); // continue button for ITAC/NoComp flow this.continueButton = page.getByRole('button', { name: 'Continue' }); // continue button for essential flow @@ -98,9 +100,14 @@ export class CoverageStatementPage extends BasePage { await this.continueSchedulingButton.click(); // happy path to scheduling for ITAC } - async handleNoCompFlow(){ + async handleNoCompFlow(){ await expect(this.headerForNoComp).toBeVisible(); // verify NoComp header is visible await this.continueSchedulingButton.click(); // happy path to scheduling for NoComp } + + async validateOEMBullet(){ + await expect(this.oemBullet).toBeVisible(); + } + }