Skip to content

Conversation

@dotnetprog
Copy link
Owner

No description provided.

@github-actions
Copy link

github-actions bot commented Sep 4, 2025

Test Report

🕙 Start time ⌛ Duration
9/4/2025, 11:57:05 AM 3.459 s
✅ Passed ❌ Failed ⏩ Skipped 🚧 Todo ⚪ Total
Test Suites 34 0 0 0 34
Tests 53 0 0 0 53

tests/common.test.ts [link]

2 passed, 0 failed, 0 skipped, 0 todo, done in 3.1586119999999482 s

✅ Common Module
   ✅ should have a system submodule
   ✅ should have a utility submodule

tests/form/fdn_localizednotificationcontent.test.ts [link]

8 passed, 0 failed, 0 skipped, 0 todo, done in 14.048264000000017 s

✅ Given a localized notification content form › When It loads as a create type
   ✅ Then It should set name based on language and config name
   ✅ Then It should attach onChange Handler to fdn_language
   ✅ Then It should attach onChange Handler to config
✅ Given a localized notification content form › When It loads as a update type
   ✅ Then It should set name based on language and config name
   ✅ Then It should attach onChange Handler to fdn_language
   ✅ Then It should attach onChange Handler to config
✅ Given a localized notification content form › when language field value changes
   ✅ Then It should set the name
✅ Given a localized notification content form › when config field value changes
   ✅ Then It should set the name
✅ Given a localized notification content form

tests/main.test.ts [link]

2 passed, 0 failed, 0 skipped, 0 todo, done in 4.689396999999985 s

✅ Given the root module › When it is loading
   ✅ Then it should initialize window props
✅ Given the root module
✅ MainModule
   ✅ should have a form property defined

tests/ribbon/application.test.ts [link]

13 passed, 0 failed, 0 skipped, 0 todo, done in 30.808326999999963 s

✅ Given an application ribbon › When it renders notifications on the right page
   ✅ Then It should return false
   ✅ Then It should get cached notifications from store
   ✅ Then It should remove the cached notifications from ui
   ✅ Then It should retrieve published notifications for the app
   ✅ Then It should display the published notifications to the ui
   ✅ Then It should cache the generated notification uids to the store
✅ Given an application ribbon › When it renders notification on the wrong page
   ✅ Then It should return false
   ✅ Then It should not read app properties
✅ Given an application ribbon › When it renders notification on the right page outside of a modern-driven app context
   ✅ Then It should return false
   ✅ Then It should read app properties
   ✅ Then It should not get cached notifications
✅ Given an application ribbon › When it renders notifications and there's an exception
   ✅ Then It should return false
   ✅ Then It should log in console
✅ Given an application ribbon

tests/ribbon/fdn_broadcastappnotification.test.ts [link]

20 passed, 0 failed, 0 skipped, 0 todo, done in 24.227921999999808 s

✅ Given a broadcast app notification ribbon › When form is dirty and publish button is clicked
   ✅ Then It should not display ConfirmDialog
   ✅ Then It should display alert dialog to notify unsaved changes
✅ Given a broadcast app notification ribbon › When the publish button is clicked and it's confirmed
   ✅ Then It should show progress indicator with proper message
   ✅ Then It should display confirmation dialog with proper content
   ✅ Then It should use the broadcast notification service to publish
   ✅ Then It should refresh the ribbon
   ✅ Then It should refresh the form
   ✅ Then It should close progress indicator
✅ Given a broadcast app notification ribbon › When the publish button is clicked and it's not confirmed
   ✅ Then It should not show progress indicator with proper message
   ✅ Then It should display confirmation dialog with proper content
   ✅ Then It should not use the broadcast notification service to publish
✅ Given a broadcast app notification ribbon › When the unpublish button is clicked and it's confirmed
   ✅ Then It should show progress indicator with proper message
   ✅ Then It should display confirmation dialog with proper content
   ✅ Then It should refresh the ribbon
   ✅ Then It should refresh the form
   ✅ Then It should close progress indicator
   ✅ Then It should use the broadcast notification service to unpublish
✅ Given a broadcast app notification ribbon › When the unpublish button is clicked and it's not confirmed
   ✅ Then It should not show progress indicator with proper message
   ✅ Then It should display confirmation dialog with proper content
   ✅ Then It should use the broadcast notification service to unpublish
✅ Given a broadcast app notification ribbon

tests/services/BroadcastNotificationService.test.ts [link]

5 passed, 0 failed, 0 skipped, 0 todo, done in 9.773594999999887 s

✅ Given a broadcast notification service › When it retrieves published notifications
   ✅ Then It should call dataverse api if not cached
   ✅ Then It should not call dataverse api if cached and not expired
   ✅ Then It should call dataverse api if cache is expired
✅ Given a broadcast notification service › When it publishes a notification
   ✅ Then It Should update state and status properly
✅ Given a broadcast notification service › When it unpublishes a notification
   ✅ Then It Should update state and status properly
✅ Given a broadcast notification service

tests/services/notifications.store.test.ts [link]

3 passed, 0 failed, 0 skipped, 0 todo, done in 18.667658999999958 s

✅ Given a localstorage notification store › When it gets cached notifications
   ✅ Then the storage should provide them
   ✅ And there are no cache , then it should return an empty array
✅ Given a localstorage notification store › When it stores notifications
   ✅ Then it should saves them in the storage
✅ Given a localstorage notification store

@dotnetprog dotnetprog merged commit 3280be0 into main Sep 4, 2025
3 checks passed
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.

2 participants