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

Update tests for notifications page and its components (Part 1/2) #5713

Merged
merged 9 commits into from
Apr 18, 2023

Conversation

HelNershingThapa
Copy link
Contributor

No description provided.

Instead of rendering the login page from the same component
Replaces the use of fetchLocalJSONAPI with custom hook useFetchWithAbort aiming for a cleaner component
- Message Avatar
	- should return nothing username and message type is undefined
	- should return system generated display picture if username is not passed
- Notification Card
	- should mark the notification as read
	- should delete the notification
	- should catch error on deletion error
	- should open any links in the notification message
	- should open notification modal
- Notification Card Mini
	- should refetch notifications on closing the dialog
- Notifications Page
	- should navigate to the login page if the user is not logged in
	- should display notifications if the user is logged in
- Mini Notification Results
	- should display the refresh button
	- should display no notifications found message
- Notifications Results
	- should display error message for fetching notifications
	- should fetch for notifications on clicking the try again button
	- should display no notifications found message
Accidentally used errorLoadingNotifications for projects search results page. Reverting that.
@sonarcloud
Copy link

sonarcloud bot commented Apr 18, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@HelNershingThapa HelNershingThapa marked this pull request as ready for review April 18, 2023 04:48
@HelNershingThapa HelNershingThapa merged commit cd8b3a0 into develop Apr 18, 2023
5 checks passed
@HelNershingThapa HelNershingThapa deleted the tests/notifications-page branch April 21, 2023 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant