Skip to content

Commit 23c4335

Browse files
committed
Add inline message component to the primer component test
1 parent 5874755 commit 23c4335

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

previews/primer/open_project/inline_message_preview.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def default
99
end
1010

1111
# @label Playground
12-
# @param scheme [Symbol] select [warning, success]
12+
# @param scheme [Symbol] select [warning, critical, unavailable, success]
1313
# @param size [Symbol] select [small, medium]
1414
def playground(
1515
scheme: :warning,

test/components/component_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class PrimerComponentTest < Minitest::Test
4545
component.with_text_input(name: "a name", label: "My input group", value: "Copyable value")
4646
component.with_trailing_action_clipboard_copy_button(id: "button", value: "Copyable value", aria: { label: "Copy some text" })
4747
}],
48+
[Primer::OpenProject::InlineMessage, { scheme: :warning, size: :small }, proc { "Inline message" }],
4849
[Primer::OpenProject::GridLayout, { css_class: "grid-layout", tag: :div }, proc { |component|
4950
component.with_area(:area) do
5051
"Foo"

0 commit comments

Comments
 (0)