Skip to content

Commit 60a977c

Browse files
committed
update pom
1 parent 6e505c6 commit 60a977c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

e2e/logic/POM/codeGraph.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ export default class CodeGraph extends BasePage {
579579

580580
async getGraphDetails(): Promise<any> {
581581
await this.canvasElementBeforeGraphSelection.waitFor({ state: 'detached' });
582-
await this.page.waitForTimeout(3000);
582+
await this.waitForCanvasAnimationToEnd();
583583
await this.page.waitForFunction(() => !!window.graph);
584584

585585
const graphData = await this.page.evaluate(() => {
@@ -591,7 +591,7 @@ export default class CodeGraph extends BasePage {
591591

592592

593593
async getGraphNodes(): Promise<any[]> {
594-
await this.page.waitForTimeout(3000);
594+
await this.waitForCanvasAnimationToEnd();
595595

596596
const graphData = await this.page.evaluate(() => {
597597
return (window as any).graph;

0 commit comments

Comments
 (0)