mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
Aircraft description stays inside the Details card
simple_format makes paragraphs, so the padded box around them is a div: inside a <p> the browser closed it early and the text spilled out unstyled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
79a64cc208
commit
3452a35896
2 files changed
+9
-1
No files matched your search
@@ -43,4 +43,12 @@ class MoreMenuTest < ActionDispatch::IntegrationTest
|
||||
assert_select "span[title='Your access to this aircraft']", "Owner"
|
||||
assert_select "span.badge-green", text: "Available", count: 0
|
||||
end
|
||||
|
||||
test "the description keeps its paragraphs inside the Details card" do
|
||||
@a.update!(description: "First line.\n\nSecond paragraph.")
|
||||
sign_in @owner
|
||||
get aircraft_path(@a)
|
||||
# simple_format makes <p>s, so the box around them must not be a <p> (they'd spill out of it).
|
||||
assert_select "div.border-t > p", 2
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user