Skip to content

Commit 1564680

Browse files
committed
test(table): assert wrapper div has 'relative' class
Adds a dedicated test to verify that the Table component renders its wrapper div with class="relative w-full overflow-auto", ensuring regression coverage for RUI-5. Fixes: RUI-5
1 parent f882429 commit 1564680

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/ruby_ui/table_test.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,12 @@ def test_render_with_all_items
4343

4444
assert_match(/Total/, output)
4545
end
46+
47+
def test_render_table_wrapper_has_relative_class
48+
output = phlex do
49+
RubyUI.Table {}
50+
end
51+
52+
assert_match(/class="relative w-full overflow-auto"/, output)
53+
end
4654
end

0 commit comments

Comments
 (0)