-
Notifications
You must be signed in to change notification settings - Fork 43
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
557 history notes tab update important note #2549
Conversation
85e4582
to
240afb4
Compare
2ffc796
to
2fe01ec
Compare
app/views/editions/secondary_nav_tabs/update_important_note.html.erb
Outdated
Show resolved
Hide resolved
app/views/editions/secondary_nav_tabs/update_important_note.html.erb
Outdated
Show resolved
Hide resolved
app/views/editions/secondary_nav_tabs/update_important_note.html.erb
Outdated
Show resolved
Hide resolved
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.
Nice work, just a couple of very minor comments.
611dde3
to
536c63f
Compare
7a579c3
to
c973571
Compare
visit edition_path(@draft_edition) | ||
|
||
assert page.has_text?("Important") | ||
assert page.has_text?(note_text) |
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.
Is it worth adding a test that these two text elements are within a banner (and likewise below)?
So maybe
within :css, ".govuk-notification-banner" do
assert page.has_text?("Important")
assert page.has_text?(note_text)
end
c84d3bd
to
2fc0290
Compare
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.
Nice work - LGTM! 👍
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.
Minor assertion tweak suggestion
- Add cancel link and important note information. - Add hidden field tag for note type. - Conditionally render _important_note partial if note exists - Include original important note text in update important note text area
- Handle blank important note saving, whether an important note is present. - Tests for New Edition and Edition History functionality are in place. These will have to be un-skipped in the future, when the functionality is ready. - Refactor for PR comments
… note by saving an empty note
2fc0290
to
6b7f1ea
Compare
6b7f1ea
to
9b0c980
Compare
Trello card
The changes have added an Update Important Note function with button, to the side bar, visible from the History and Notes tab