FEATURE: show flag description along with additional reason (#31210)

Currently, the description is hidden when an additional reason field
appears on the flag modal. It can contain important guidance and
therefore should never be hidden.

<img width="671" alt="Screenshot 2025-02-06 at 9 59 42 am"
src="https://github.com/user-attachments/assets/97629059-f346-4696-b720-9a9da3faf8f8"
/>
This commit is contained in:
Krzysztof Kotlarek
2025-02-06 12:47:31 +11:00
committed by GitHub
parent f413e1b0de
commit c5bead4369
3 changed files with 3 additions and 5 deletions

View File

@@ -44,6 +44,7 @@ describe "Flagging post", type: :system do
topic_page.click_post_action_button(post_to_flag, :flag)
flag_modal.choose_type(:illegal)
expect(flag_modal).to have_css(".illegal .description")
expect(flag_modal).to have_css(".flag-confirmation")
flag_modal.fill_message("This looks totally illegal to me.")