Skip to content

test: add tests for UI store#783

Open
d3vobed wants to merge 1 commit into
StellaBridge:mainfrom
d3vobed:test/stores-ui-store
Open

test: add tests for UI store#783
d3vobed wants to merge 1 commit into
StellaBridge:mainfrom
d3vobed:test/stores-ui-store

Conversation

@d3vobed

@d3vobed d3vobed commented Jun 28, 2026

Copy link
Copy Markdown

Adds comprehensive tests for the UI store:

  • Initial state verification
  • Modal actions: openModal, closeModal, setModalData (with merge)
  • Sidebar actions: toggleSidebar, setSidebarOpen, setSidebarView
  • Toast actions: addToast (with custom duration), removeToast, clearToasts
  • Loading actions: setGlobalLoading with/without message
  • Selection actions: setSelectedAsset, setSelectedBridge, setSelectedTimeRange
  • Insights tray: openInsightsTray, closeInsightsTray
  • View actions: setIsMobileView, setIsTouchDevice
  • ResetUI: full state reset to initial values
  • Selectors: all exported selectors
  • Edge cases: closing modal when none is open, removing non-existent toast, toast auto-id format, tray close preserves asset

Follows existing store test conventions from notificationStore.test.ts.

Closes #763

@drips-wave

drips-wave Bot commented Jun 28, 2026

Copy link
Copy Markdown

@d3vobed Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Tests for UI Store

1 participant