Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing tests for falkordb browser #615

Open
13 of 94 tasks
Naseem77 opened this issue Jan 19, 2025 · 1 comment
Open
13 of 94 tasks

Add missing tests for falkordb browser #615

Naseem77 opened this issue Jan 19, 2025 · 1 comment
Assignees
Labels

Comments

@Naseem77
Copy link
Contributor

Naseem77 commented Jan 19, 2025

General:

  • Add parallel tests


Logic Layer:

  • Implement duplicate graph in apiCalls in logic layer & api response interface

  • Implement change graph name in apiCalls in logic layer & api response interface

  • Implement get graphs in apiCalls in logic layer & api response interface

  • Implement export a graph in apiCalls in logic layer & api response interface

  • Implement add a schema in apiCalls in logic layer & api response interface

  • Implement remove a schema in apiCalls in logic layer & api response interface

  • Implement Login in apiCalls in logic layer & api response interface

  • Implement logout in apiCalls in logic layer & api response interface



Infra Layer:

  • Implement Patch Request in Infrastructure


Tests Layer:

All users:

  • Validate user search filters table results for settings users
  • Validate role filtering via search input for settings config
  • Verify Help -> About Popup opens and closes correctly

Graph:

  • Validate failure & error message when any user runs an invalid queries
  • Validate that running a query without selecting a graph displays the proper error notification
  • Validate success when running ro-query queries (fetch nodes, filter by label, fetch nodes & relationships, list all labels) and their correct canvas display
  • Validate search for an element in the canvas and ensure focus on the searched node
  • Validate zoom-in functionality upon clicking the zoom in button
  • Validate zoom-out functionality upon clicking the zoom out button
  • Validate fit to size functionality upon clicking the fit to size button
  • Validate that the node table functionality is accessible after a successful query execution
  • Validate that running different queries displays the correct results in the nodes table
  • Validate that the reload graph list function works by adding a graph via API and testing the reload button
  • Validate that dragging a node on the canvas updates its position

Preferences Table:

  • Validate adding a new color in preferences with proper notification.
  • Validate modifying and selecting a new color with proper notification.
  • Validate removing an existing color from the list with proper notification.
  • Validate reset functionality with proper notification.
  • Validate that closing functionality hides the preferences table.
  • Validate scroll functionality in the preferences table.
  • Validate that up/down functionality in the preferences table changes the color position.
  • Validate that removing the first color in the preferences table affects node colors in the canvas.

Query History:

  • Validate that running a query in the UI saves it in the query history
  • Validate that executing a query from the query history correctly displays the results in the canvas
  • Validate that switching users clears query history

Schema:

  • Validate search for element in schema will display and focus on correct node in canvas
  • Validate that the export functionality successfully downloads a file

Tutorial Panel:

  • Validate scroll forward and backwards changes the display
  • validate scrolling forward and graph creation functionality works correctly
  • validate "don't show this again" radio button functionality in tutorial not persisting after refresh
  • validate that clicking away dismisses the tutorial panel

Read-write & admin user:

Graph:

  • Validate success when running write queries such as node creation, update properties, create relationship, delete node and relationship and their correct canvas display
  • Validate that running multiple queries updates the node and edge count correctly
  • Validate auto complete for different types of queries
  • Validate attributes count for node after selecting a graph and running a query
  • Validate modifying node attributes will update correctly
  • Validate adding new attribute for node
  • validate deleting a node via the data panel will update correctly on canvas
  • validate modifying the label will update the canvas correctly
  • validate undo functionally after modifying node attributes update correctly.

Schema:

  • Validate successfully notification when creating a new schema
  • Validate that creating a new schema via API and reloading the graphs list updates with the new schema
  • Validate that adding a new node correctly displays it on the canvas.
  • Validate that creating a relationship updates the canvas display.
  • Validate that the delete button functions correctly and updates the canvas.
  • Validate that updating a node label reflects the changes on the canvas.
  • Validate that updating a node value updates both the node and the canvas.
  • Validate that removing a node value updates the canvas display accordingly.
  • Validate that the delete button in the data panel correctly updates the canvas display.
  • Validate that adding attributes updates the attribute count
  • Attempt to create a relation without a label with correct notification
  • Validate that the swap functionality works correctly when creating a relationship.
  • Validate that the clear functionality works correctly when creating a relationship.
  • Validate undo functionality when modifying a node attributes
  • Validate removing a relation update the canvas correctly
  • Validate adding nodes and relations update the count correctly
  • validate that duplicating a schema creates a new one with a unique name successfully
  • validate that attempting to duplicate a schema with the same name displays an error notification
  • Attempt to add node without label
  • Attempt to add attribute to node without one of the keys (key, type)
  • Attempt to add relation without selecting two nodes
  • Attempt to add relation without label
  • Attempt to add relation attributes without (key, type)
  • Validate clicking on categories after adding a node will hide/unhide the node in canvas

Read-Only user:

Graph:

  • Validate failure & error message when RO user attempts to create a graph via UI
  • Validate failure & error message when RO user attempts to duplicate a graph via UI
  • Validate failure & error message when RO user attempts to delete a graph via UI
  • Validate failure & error message when RO user attempts to rename an existing graph via UI
  • Validate failure & error message when RO user attempts to execute a write query via UI (Create node, update properties, delete node)

Schema:

  • Validate that the delete node functionality is hidden for read-only users
  • Validate that the data-panel functionality is hidden for read-only users
  • Validate after search for an element in canvas add attribute button is hidden for read-only users
  • Validate after search for an element in canvas delete node button is hidden for read-only users
  • Validate after search for an element in canvas user can't delete attribute
  • Validate after search for an element in canvas user edit attribute
  • Validate after search for an element in canvas user can't delete attribute
  • Validate after search for an element in canvas user can't modify label name
  • Validate failure & error message when RO user attempts to create a schema via UI
  • Validate that Add node button is hidden for read-only users
  • Validate that Add relation button is hidden for read-only users
  • Validate that delete button is hidden for read-only users
  • Validate that data-panel is hidden for read-only users
  • Attempt to add a new attribute display error notification
  • Attempt to duplicate a schema display error notification
@Naseem77 Naseem77 self-assigned this Jan 19, 2025
@barakb
Copy link
Contributor

barakb commented Mar 2, 2025

2w

@Naseem77 Naseem77 added the test label Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants