Add OEM validation
This commit is contained in:
parent
ce2f640a5f
commit
7481aff268
1 changed files with 8 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue