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

CRIMRE-389 Surface appeal lodged date, change details and maat id in appeal cases #336

Merged
merged 2 commits into from
Jul 5, 2023

Conversation

arthurashman
Copy link
Contributor

@arthurashman arthurashman commented Jul 5, 2023

Description of change

In appeal cases surface appeal attributes:

  • lodged date
  • financial change details
  • previous maat id

Link to relevant ticket

https://dsdmoj.atlassian.net/browse/CRIMRE-389

Notes for reviewer

Screenshots of changes (if applicable)

Before changes:

image

After changes:

image

How to manually test the feature

Put an appeal / appeal with changes case type through Apply, view Case Details section on Review

@arthurashman arthurashman requested a review from a team as a code owner July 5, 2023 14:20
it 'includes the page title' do
expect(page).to have_content I18n.t('crime_applications.show.page_title')
end

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just reordered spec to match order of fields on page

it 'includes button to assign' do
expect(page).to have_content('Assign to your list')
end

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just reordered spec to match order of fields on page

it 'does shows the class not determined badge' do
table_body = find(:xpath,
"//table[@class='govuk-table app-dashboard-table govuk-!-margin-bottom-9']
//tr[contains(td[1], 'Non-listed offence, manually entered')]")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just reordered spec to match order of fields on page

it 'does not show the CTAs' do
expect(page).not_to have_content('Mark as completed')
end

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just reordered spec to match order of fields on page


it 'displays calculated overall offence class badgee' do
expect(page).to have_content('Overall offence class Class C')
end
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just reordered spec to match order of fields on page

expect(row).to have_content('Class C')
it 'displays undetermined overall offence class badge' do
expect(page).to have_content('Overall offence class Undetermined')
end
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just reordered spec to match order of fields on page

"//table[@class='govuk-table app-dashboard-table govuk-!-margin-bottom-9']
//tr[contains(td[1], 'Robbery')]")
expect(table_body).to have_content('Class not determined')
end
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just reordered spec to match order of fields on page

@arthurashman arthurashman force-pushed the CRIMRE-389-show-appeal-details branch from 73f1bb2 to 73f5660 Compare July 5, 2023 14:25
@arthurashman arthurashman changed the title CRIMRE-389 Bump Schema Gem. Surface appeal lodged date, change details and maat id in appeal cases CRIMRE-389 Surface appeal lodged date, change details and maat id in appeal cases Jul 5, 2023
Copy link
Contributor

@willmcb willmcb 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 - perhaps we could think about having a presenter or something to avoid some view logic, but happy for this to be in a further PR etc.

@arthurashman arthurashman merged commit 877fbc2 into main Jul 5, 2023
4 checks passed
@arthurashman arthurashman deleted the CRIMRE-389-show-appeal-details branch July 5, 2023 16:05
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