File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments