Update locators for content homepage

This commit is contained in:
JennyNou 2026-03-18 14:33:26 -04:00
parent 88b5dd54d2
commit 0a9e7c789c

View file

@ -21,7 +21,6 @@ export class HomePage extends BasePage {
readonly viewQuoteButton: Locator; readonly viewQuoteButton: Locator;
//Zip Entry //Zip Entry
readonly enterServiceZipTextBox: Locator;
readonly zipEntryLetsGetStartedButton: Locator; readonly zipEntryLetsGetStartedButton: Locator;
readonly getQuoteAndScheduleButton: Locator; readonly getQuoteAndScheduleButton: Locator;
@ -31,7 +30,7 @@ export class HomePage extends BasePage {
super(page); super(page);
this.page = page; this.page = page;
this.letsGetStartedButton = this.page.locator('#zipCodeTextboxButton'); this.letsGetStartedButton = this.page.getByRole('button', { name: 'Let\'s get started' });
this.cusmodalPopup = this.page.locator('#Cusmodalpopup'); this.cusmodalPopup = this.page.locator('#Cusmodalpopup');
this.closePopupButton = this.page.getByRole('button', { name: '×' }); this.closePopupButton = this.page.getByRole('button', { name: '×' });
@ -47,8 +46,7 @@ export class HomePage extends BasePage {
this.viewQuoteButton = this.page.locator('#ctaSubmit'); this.viewQuoteButton = this.page.locator('#ctaSubmit');
//Zip Entry //Zip Entry
this.enterServiceZipTextBox = this.page.locator('#zipCodeTextbox'); this.zipEntryLetsGetStartedButton = this.page.getByRole('textbox', { name: 'Enter service ZIP code' });
this.zipEntryLetsGetStartedButton = this.page.locator('#zipCodeTextbox');
this.getQuoteAndScheduleButton = this.page.getByLabel('main').getByRole('link', { name: 'Get quote + schedule' }); this.getQuoteAndScheduleButton = this.page.getByLabel('main').getByRole('link', { name: 'Get quote + schedule' });
} }