Update locators for yes or no buttons
This commit is contained in:
parent
fb6c3ee7fb
commit
dc58951630
1 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue