Update locators for yes or no buttons

This commit is contained in:
JennyNou 2026-03-10 13:36:48 -04:00
parent fb6c3ee7fb
commit dc58951630

View file

@ -12,11 +12,11 @@ export class EndorsementsPage extends BasePage {
constructor(page: Page) {
super(page);
this.page = page;
this.educatorYesButton = this.page.locator('label[for="schoolProperty-Yes"]');
this.educatorNoButton = this.page.locator('label[for="schoolProperty-No"]');
this.educatorYesButton = this.page.locator('label:has(div.button-content:has(span:has-text("Yes")))');
this.educatorNoButton = this.page.locator('label:has(div.button-content:has(span:has-text("No")))');
}
async verifyEndorsements(endorsements: IEndorsementDetails[]) {
async verifyEndorsements(endorsements: IEndorsementDetails[]) {
for (const endorsement of endorsements) {
switch(endorsement.endorsementType) {
case EndorsementType.Educator: