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

test : add tests for pagination of progresses api #2328

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

AnujChhikara
Copy link
Contributor

Date: 30 Dec 2024

Developer Name: @AnujChhikara


Issue Ticket Number

Description

Addes tests for the pagination of the progresses API

Documentation Updated?

  • Yes
  • No

Under Feature Flag

  • Yes
  • No

Database Changes

  • Yes
  • No

Breaking Changes

  • Yes
  • No

Development Tested?

  • Yes
  • No

Screenshots

Screenshot 1

Test Coverage

Screenshot 1

image
image
Screenshot 2024-12-30 150131
Screenshot 2024-12-30 150042
image

Additional Notes

Added tests for PR - #2325

Comment on lines 764 to 765
"The server has encountered an unexpected error. Please contact the administrator for more information.",
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we have a default / constant message here? Could you check how other parts of the application handle this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No we don't have any constant for this. You can check this test for refrence test

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for confirming. It's a good practice to have a consistent error message for 500 status codes across the application. Let's have a constant and use that in the future also. It'll help with future maintenance and keep the UX unified.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @VinuB-Dev I am using constant value now can you please check. Thank you

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.

Implement Pagination with Limit for getProgressDocument
3 participants