Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-kirwan committed Feb 6, 2024
1 parent 5777a5c commit 70d1d28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/components/error_message_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ def component_name

test "renders an error message correctly" do
render_component(text: "Descriptive error message")
assert_select ".app-c-error-message", text: "Descriptive error message"
assert_select ".gem-c-error-message", text: "Descriptive error message"
end

test "renders an error message with an id" do
render_component(text: "Descriptive error message with id", id: "unique-error-id")
assert_select ".app-c-error-message[id='unique-error-id']", text: "Descriptive error message with id"
assert_select ".gem-c-error-message[id='unique-error-id']", text: "Descriptive error message with id"
end
end

0 comments on commit 70d1d28

Please sign in to comment.