diff --git a/test/components/error_message_test.rb b/test/components/error_message_test.rb deleted file mode 100644 index 15704288e..000000000 --- a/test/components/error_message_test.rb +++ /dev/null @@ -1,23 +0,0 @@ -require "component_test_helper" - -class ErrorMessageTest < ComponentTestCase - def component_name - "error_message" - end - - test "fails to render no data is given" do - assert_raise do - render_component({}) - end - end - - test "renders an error message correctly" do - render_component(text: "Descriptive error message") - assert_select ".app-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" - end -end diff --git a/test/integration/service_sign_in/choose_sign_in_test.rb b/test/integration/service_sign_in/choose_sign_in_test.rb index c308f76f9..d92a3563a 100644 --- a/test/integration/service_sign_in/choose_sign_in_test.rb +++ b/test/integration/service_sign_in/choose_sign_in_test.rb @@ -61,7 +61,7 @@ class ChooseSignInTest < ActionDispatch::IntegrationTest # Make sure the id is the same as the link href so that they'll link together properly. assert page.has_css?(".gem-c-radio input[id='option-0'][value='use-government-gateway']", visible: false) - assert page.has_css?(".app-c-error-message", text: "Please select an option") + assert page.has_css?(".gem-c-error-message", text: "Please select an option") end test "page less options without an or divider" do