-
Notifications
You must be signed in to change notification settings - Fork 6
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
UIREQ-1032, UIREQ-1034, UIREQ-1035 - Request detail view update for Lending, Borrowing and Pickup DCB roles #1118
Conversation
…ending, Borrowing and Pickup DCB roles
src/ViewRequest.test.js
Outdated
}); | ||
|
||
it('should not render "Duplicate" button', () => { | ||
it('should not render "Dublicate" button', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it('should not render "Dublicate" button', () => { | |
it('should not render "Duplicate" button', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see on the application that the button name is "Duplicate"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, but you renamed it to duBlicate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
src/ViewRequest.test.js
Outdated
expect(screen.queryByText(labelIds.reorderQueue)).not.toBeInTheDocument(); | ||
}); | ||
|
||
// describe('when request is valid', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented tests if they are not needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
src/ViewRequest.test.js
Outdated
expect(screen.queryByText(labelIds.reorderQueue)).not.toBeInTheDocument(); | ||
}); | ||
|
||
// describe('when request is valid', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
value: title, | ||
}; | ||
|
||
expect(KeyValue).toHaveBeenNthCalledWith( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see checking for a link in this test case actually
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The test case intends to check that it is a not a link.
- line#32 declares title as a mere string, against which the assertion is made.
I think this is sufficient.
Kudos, SonarCloud Quality Gate passed! |
Purpose
Reshare DCB is a feature that allows sharing of assets within consortium.
Folio has primarily 3 roles in this feature - Lending, Borrowing, Pickup
Lending Role
Borrowing Role
Pickup Role
More details of the feature are available at https://wiki.folio.org/display/FOLIJET/DCB+Integration
Approach
Refs
UIREQ-1032 -[DCB] Request details: Hide all actions except "Cancel Request" in Action menu (Lending library)
UIREQ-1034 - [DCB] Request details: Updates for Action menu and DCB item links (Borrowing library)
UIREQ-1035 - [DCB] Request details: Updates for Action menu and DCB item links (Pickup library)
Screenshots
Two-legged transaction
Lending flow -
Request Status - Open-Not yet filled
Request Status - Open-In transit
Request Status - Open-Awaiting pickup
Request Status - Closed-Filled
Borrowing & Pickup flow -
Request Status - Open-Not yet filled
Request Status - Closed-Filled
Pre-Merge Checklist
Before merging this PR, please go through the following list and take appropriate actions.
If there are breaking changes, please STOP and consider the following:
Ideally all of the PRs involved in breaking changes would be merged in the same day to avoid breaking the folio-testing environment. Communication is paramount if that is to be achieved, especially as the number of intermodule and inter-team dependencies increase.
While it's helpful for reviewers to help identify potential problems, ensuring that it's safe to merge is ultimately the responsibility of the PR assignee.