Skip to content

Commit aead631

Browse files
committed
add interactWhenVisible for locators
1 parent 34ad592 commit aead631

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

e2e/logic/POM/codeGraph.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,17 +464,17 @@ export default class CodeGraph extends BasePage {
464464
/* Canvas functionality */
465465

466466
async clickZoomIn(): Promise<void> {
467-
await this.zoomInBtn.click();
467+
await interactWhenVisible(this.zoomInBtn, (el) => el.click(), 'Zoom In button');
468468
await this.waitForCanvasAnimationToEnd();
469469
}
470470

471471
async clickZoomOut(): Promise<void> {
472-
await this.zoomOutBtn.click();
472+
await interactWhenVisible(this.zoomOutBtn, (el) => el.click(), 'Zoom Out button');
473473
await this.waitForCanvasAnimationToEnd();
474474
}
475475

476476
async clickCenter(): Promise<void> {
477-
await this.centerBtn.click();
477+
await interactWhenVisible(this.centerBtn, (el) => el.click(), 'Center button');
478478
await this.waitForCanvasAnimationToEnd();
479479
}
480480

0 commit comments

Comments
 (0)