Skip to content

Commit 6d2d286

Browse files
committed
Update codeGraph.ts
1 parent 1b63639 commit 6d2d286

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

e2e/logic/POM/codeGraph.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -669,13 +669,13 @@ export default class CodeGraph extends BasePage {
669669

670670
async isNodeToolTipVisible(): Promise<boolean> {
671671
try {
672-
await this.nodeToolTip.waitFor({ state: 'attached', timeout: 5000 });
673-
const box = await this.nodeToolTip.boundingBox();
674-
return box !== null;
672+
await this.nodeToolTip.waitFor({ state: 'visible', timeout: 7000 });
673+
return await this.nodeToolTip.evaluate(el => getComputedStyle(el).visibility === 'visible');
675674
} catch (error) {
676-
console.error("Error checking tooltip visibility:", error);
675+
console.error("Tooltip visibility check failed:", error);
677676
return false;
678677
}
679678
}
680679

680+
681681
}

0 commit comments

Comments
 (0)