Skip to content

test: add tests for UI store#783

Merged
Mosas2000 merged 1 commit into
StellaBridge:mainfrom
d3vobed:test/stores-ui-store
Jun 29, 2026
Merged

test: add tests for UI store#783
Mosas2000 merged 1 commit into
StellaBridge:mainfrom
d3vobed:test/stores-ui-store

Conversation

@d3vobed

@d3vobed d3vobed commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

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

@Mosas2000 Mosas2000 merged commit 6226400 into StellaBridge:main Jun 29, 2026
15 of 17 checks passed
@grantfox-oss grantfox-oss Bot mentioned this pull request Jun 29, 2026
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

2 participants