Skip to content

Commit 34ad592

Browse files
committed
fix canvas tests
1 parent d9609cd commit 34ad592

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

e2e/tests/canvas.spec.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@ test.describe("Canvas tests", () => {
7373

7474
test(`Validate unhide node functionality after hiding a node in canvas for ${nodes[0].nodeName}`, async () => {
7575
const codeGraph = await browser.createNewPage(CodeGraph, urls.baseUrl);
76+
await browser.setPageToFullScreen();
7677
await codeGraph.selectGraph(GRAPHRAG_SDK);
77-
const initialGraph = await codeGraph.getGraphNodes();
78-
const targetNode = findNodeByName(initialGraph, nodes[0].nodeName);
79-
await codeGraph.nodeClick(targetNode.screenX, targetNode.screenY);
78+
await codeGraph.fillSearchBar(nodes[0].nodeName);
79+
await codeGraph.selectSearchBarOptionBtn("1");
80+
await codeGraph.waitForCanvasAnimationToEnd();
81+
await codeGraph.rightClickAtCanvasCenter();
8082
await codeGraph.clickOnRemoveNodeViaElementMenu();
8183
await codeGraph.clickOnUnhideNodesBtn();
8284
const updatedGraph = await codeGraph.getGraphNodes();

0 commit comments

Comments
 (0)