From 9da3ba83181d65ddf1d85ecef788ac06009e6c09 Mon Sep 17 00:00:00 2001 From: Anchel123 <110421452+Anchel123@users.noreply.github.com> Date: Thu, 1 Aug 2024 15:29:34 +0300 Subject: [PATCH 1/3] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d0669c51..5721fb49 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,9 @@ FalkorDB-Browser is a visualization UI for FalkorDB. To see a running demo, check: https://browser.falkordb.com/ -![image](https://github.com/FalkorDB/falkordb-browser/assets/753206/51a81ef9-6bb2-40ce-ad9b-6381978c7562) +![image](https://github.com/user-attachments/assets/c1e3c868-fc73-421c-a299-29004aa86f2a) + +![image](https://github.com/user-attachments/assets/58ebc352-31bd-495e-ad8b-2fdc36f5a656) ## Run in Docker From b7b0e4271512d5f9d1e010b29491a594b702895f Mon Sep 17 00:00:00 2001 From: Anchel135 Date: Tue, 6 Aug 2024 14:11:57 +0300 Subject: [PATCH 2/3] delete unused tests --- e2e/createGraph.spec.ts | 13 ------------- e2e/graph.spec.ts | 29 ----------------------------- e2e/homePage.spec.ts | 17 ----------------- e2e/login.spec.ts | 11 ----------- 4 files changed, 70 deletions(-) delete mode 100644 e2e/createGraph.spec.ts delete mode 100644 e2e/graph.spec.ts delete mode 100644 e2e/homePage.spec.ts delete mode 100644 e2e/login.spec.ts diff --git a/e2e/createGraph.spec.ts b/e2e/createGraph.spec.ts deleted file mode 100644 index ae1ae86b..00000000 --- a/e2e/createGraph.spec.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { test } from '@playwright/test'; - -test('create graph', async ({ page }) => { - await page.goto('http://localhost:3000/login'); - await page.getByRole('button', { name: 'Connect' }).click(); - await page.getByText('Select Graph...').click(); - await page.getByRole('button', { name: 'Create new Graph...' }).click(); - await page.getByPlaceholder('Graph name').fill('falkorDB'); - await page.getByRole('button', { name: 'Create' }).click(); - await page.getByPlaceholder('MATCH (n) OPTIONAL MATCH (n').fill('CREATE (:Rider {name:\'Valentino Rossi\'})-[:rides]->(:Team {name:\'Yamaha\'}), (:Rider {name:\'Dani Pedrosa\'})-[:rides]->(:Team {name:\'Honda\'}), (:Rider {name:\'Andrea Dovizioso\'})-[:rides]->(:Team {name:\'Ducati\'})'); - await page.getByRole('button').first().click(); - await page.getByText('falkorDB').first().click() -}) \ No newline at end of file diff --git a/e2e/graph.spec.ts b/e2e/graph.spec.ts deleted file mode 100644 index 1327633c..00000000 --- a/e2e/graph.spec.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { test } from '@playwright/test'; - -test.beforeEach(async ({ page }) => { - await page.goto('http://localhost:3000/login'); - await page.getByRole('button', { name: 'Connect' }).click(); - await page.getByText('Select Graph...').click(); - await page.getByRole('button', { name: 'Create new Graph...' }).click(); - await page.getByPlaceholder('Graph name').fill('falkorDB'); - await page.getByRole('button', { name: 'Create' }).click(); - await page.waitForTimeout(2000) - await page.getByPlaceholder('MATCH (n) OPTIONAL MATCH (n)').fill('CREATE (:Rider {name:\'Valentino Rossi\'})-[:rides]->(:Team {name:\'Yamaha\'}), (:Rider {name:\'Dani Pedrosa\'})-[:rides]->(:Team {name:\'Honda\'}), (:Rider {name:\'Andrea Dovizioso\'})-[:rides]->(:Team {name:\'Ducati\'})'); - await page.getByRole('button').first().click(); - await page.getByPlaceholder('MATCH (n) OPTIONAL MATCH (n)').click({ clickCount: 3 }); - await page.getByPlaceholder('MATCH (n) OPTIONAL MATCH (n)').fill(''); -}); - -test('delete graph', async ({ page }) => { - await page.getByRole('button').nth(1).click(); - await page.getByRole('button', { name: 'Delete graph' }).click(); - await page.getByRole('button', { name: 'Delete' }).click(); - await page.getByText('Select Graph...').click() -}); - -test('tabs navigation', async ({ page }) => { - await page.getByRole('button').first().click(); - await page.getByRole('tab', {name: 'Graph'}).click(); - await page.getByRole('tab', {name: 'Data'}).first().click(); - await page.getByRole('tab', {name: 'Metadata'}).click(); -}); \ No newline at end of file diff --git a/e2e/homePage.spec.ts b/e2e/homePage.spec.ts deleted file mode 100644 index 005ea482..00000000 --- a/e2e/homePage.spec.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { expect, test } from '@playwright/test'; - -test.beforeEach(async ({ page }) => { - await page.goto('http://localhost:3000/'); -}); - -test('connect', async ({ page }) => { - await page.getByRole('button').click(); - await page.waitForURL('http://localhost:3000/login'); - expect(page.url()).toBe('http://localhost:3000/login'); -}); - -test('themes', async ({ page }) => { - await page.getByLabel('system mode').click(); - await page.getByLabel('dark mode').click(); - await page.getByLabel('light mode').click(); -}); \ No newline at end of file diff --git a/e2e/login.spec.ts b/e2e/login.spec.ts deleted file mode 100644 index 271f2331..00000000 --- a/e2e/login.spec.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { expect, test } from '@playwright/test'; - -test.beforeEach(async ({ page }) => { - await page.goto('http://localhost:3000/login'); -}); - -test('login', async ({ page }) => { - await page.getByRole('button', { name: 'Connect' }).click(); - await page.waitForURL("http://localhost:3000/graph"); - expect(page.url()).toBe("http://localhost:3000/graph"); -}); \ No newline at end of file From 6bb1e0bae4102eddf86847261ed7321347495e9a Mon Sep 17 00:00:00 2001 From: Anchel135 Date: Tue, 6 Aug 2024 15:09:30 +0300 Subject: [PATCH 3/3] fix tests --- e2e/LoginTest.spec.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 e2e/LoginTest.spec.ts diff --git a/e2e/LoginTest.spec.ts b/e2e/LoginTest.spec.ts new file mode 100644 index 00000000..6c05512b --- /dev/null +++ b/e2e/LoginTest.spec.ts @@ -0,0 +1,9 @@ +import { expect, test } from "@playwright/test"; + +test("Login Test", async ({ page }) => { + await page.goto("http://localhost:3000"); + await page.waitForURL("http://localhost:3000/login"); + await page.getByRole("button", { name: "Connect" }).click(); + await page.waitForURL("http://localhost:3000/graph"); + expect(page.url()).toBe("http://localhost:3000/graph"); +}) \ No newline at end of file