Spaces:
Running
Running
Do table test without ID.
Browse files
lynxkite-app/web/tests/graph_creation.spec.ts
CHANGED
@@ -23,18 +23,22 @@ test.afterEach(async () => {
|
|
23 |
|
24 |
test("Tables are displayed in the Graph creation box", async () => {
|
25 |
const graphBox = await workspace.getBox("Create graph 1");
|
26 |
-
const nodesTableHeader =
|
27 |
hasText: "nodes",
|
28 |
});
|
29 |
-
const edgesTableHeader =
|
30 |
hasText: "edges",
|
31 |
});
|
|
|
|
|
32 |
await expect(nodesTableHeader).toBeVisible();
|
33 |
await expect(edgesTableHeader).toBeVisible();
|
34 |
-
|
35 |
-
await expect(
|
36 |
-
|
37 |
-
await expect(
|
|
|
|
|
38 |
});
|
39 |
|
40 |
test("Adding and removing relationships", async () => {
|
|
|
23 |
|
24 |
test("Tables are displayed in the Graph creation box", async () => {
|
25 |
const graphBox = await workspace.getBox("Create graph 1");
|
26 |
+
const nodesTableHeader = graphBox.locator(".graph-tables .df-head", {
|
27 |
hasText: "nodes",
|
28 |
});
|
29 |
+
const edgesTableHeader = graphBox.locator(".graph-tables .df-head", {
|
30 |
hasText: "edges",
|
31 |
});
|
32 |
+
const nodesTable = nodesTableHeader.locator("xpath=//following-sibling::table[1]");
|
33 |
+
const edgesTable = edgesTableHeader.locator("xpath=//following-sibling::table[1]");
|
34 |
await expect(nodesTableHeader).toBeVisible();
|
35 |
await expect(edgesTableHeader).toBeVisible();
|
36 |
+
await expect(nodesTable).not.toBeVisible();
|
37 |
+
await expect(edgesTable).not.toBeVisible();
|
38 |
+
await nodesTableHeader.click();
|
39 |
+
await expect(nodesTable).toBeVisible();
|
40 |
+
await edgesTableHeader.click();
|
41 |
+
await expect(edgesTable).toBeVisible();
|
42 |
});
|
43 |
|
44 |
test("Adding and removing relationships", async () => {
|