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

feat: add further directions to order flow (FPLA-1105) #760

Merged
merged 32 commits into from Jan 13, 2020

Conversation

swalker125
Copy link
Contributor

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/FPLA-1105

Change description

Added directions text area to order generation flow.

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

@swalker125 swalker125 changed the title Fpla 1105 add further directions to order flow feat: add further directions to order flow (FPLA-1105) Jan 3, 2020
@jenkins-reform-hmcts2 jenkins-reform-hmcts2 temporarily deployed to preview January 3, 2020 11:41 Inactive
Copy link
Contributor

@joez-f joez-f left a comment

Choose a reason for hiding this comment

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

Need to update judiciary permissions + judge e2e test + update the event in gatekeeping state

@@ -7,6 +7,11 @@ module.exports = {
title: '#order_title',
details: '#order_details',
orderTypeList: '#orderTypeAndDocument_type',
directionsNeeded: {
yes: '#orderFurtherDirections_directionsNeeded-Yes',
no: '#orderFurtherDirections_directionsNeeded-No',
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we have directionsNeeded.no if we don’t use it here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like the idea of the page objects being a bit like an API for the page. i.e this is everything you can do... But sure it's not used. You think I should remove?

Copy link
Contributor

Choose a reason for hiding this comment

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

hmm, maybe that is a good idea then actually. i think leave in :)

@@ -261,6 +262,7 @@ private void assertCommonC21Fields(GeneratedOrder order) {
}

expectedMap
.put("furtherDirections", "Example Directions")
Copy link
Contributor

Choose a reason for hiding this comment

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

we could probably move this expected map out to a private method - I know you are just adding one line here to existing code though so it's up to you :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's already within a private method, so I am just going to leave as is

@@ -288,13 +290,21 @@ private CaseData createPopulatedCaseData(GeneratedOrderType type, LocalDate loca
.order(GeneratedOrder.builder()
.title("Example Title")
.details("Example details")
.build())
Copy link
Contributor

Choose a reason for hiding this comment

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

would these case builder options be nicer in private methods too or would you like to keep them in here? - getting bulky

Copy link
Contributor Author

Choose a reason for hiding this comment

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

also already in a private method

@toireasam
Copy link
Contributor

few minor comments :)

@toireasam toireasam force-pushed the FPLA-1105-add-further-directions-to-order-flow branch from 2f8e3e1 to d88ee8a Compare January 3, 2020 14:43
@jenkins-reform-hmcts2 jenkins-reform-hmcts2 temporarily deployed to preview January 3, 2020 14:52 Inactive
@jenkins-reform-hmcts2 jenkins-reform-hmcts2 temporarily deployed to preview January 4, 2020 15:18 Inactive
@stale
Copy link

stale bot commented Jan 6, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 6, 2020
@jenkins-reform-hmcts2 jenkins-reform-hmcts2 temporarily deployed to preview January 6, 2020 15:17 Inactive
@jenkins-reform-hmcts2 jenkins-reform-hmcts2 temporarily deployed to preview January 8, 2020 09:30 Inactive
@jenkins-reform-hmcts2 jenkins-reform-hmcts2 temporarily deployed to preview January 8, 2020 09:47 Inactive
joez-f
joez-f previously approved these changes Jan 8, 2020
Copy link
Contributor

@joez-f joez-f left a comment

Choose a reason for hiding this comment

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

Looks good to me

@jenkins-reform-hmcts2 jenkins-reform-hmcts2 temporarily deployed to preview January 8, 2020 15:19 Inactive
@SamanthaSJ SamanthaSJ self-requested a review January 9, 2020 11:32
SamanthaSJ
SamanthaSJ previously approved these changes Jan 9, 2020
Copy link
Contributor

@SamanthaSJ SamanthaSJ left a comment

Choose a reason for hiding this comment

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

This PR has passed QA

@jenkins-reform-hmcts2 jenkins-reform-hmcts2 temporarily deployed to preview January 9, 2020 14:46 Inactive
…FPLA-1105-add-further-directions-to-order-flow
@lewisbirks lewisbirks dismissed stale reviews from SamanthaSJ and joez-f via f30d635 January 9, 2020 15:15
@jenkins-reform-hmcts2 jenkins-reform-hmcts2 temporarily deployed to preview January 9, 2020 15:26 Inactive
@jenkins-reform-hmcts2 jenkins-reform-hmcts2 temporarily deployed to preview January 9, 2020 16:04 Inactive
@jenkins-reform-hmcts2 jenkins-reform-hmcts2 temporarily deployed to preview January 10, 2020 15:20 Inactive
@jenkins-reform-hmcts2 jenkins-reform-hmcts2 temporarily deployed to preview January 10, 2020 16:45 Inactive
@jenkins-reform-hmcts2 jenkins-reform-hmcts2 temporarily deployed to preview January 13, 2020 13:22 Inactive
@SamanthaSJ SamanthaSJ merged commit 89cc16e into master Jan 13, 2020
@lewisbirks lewisbirks deleted the FPLA-1105-add-further-directions-to-order-flow branch January 15, 2020 10:51
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

7 participants