X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/43db18ae911fef3ad7b36e9ed27e5eff469ef863..8538f0029b9d947149e4550831e4a8f2f31242c7:/test/controllers/messages_controller_test.rb diff --git a/test/controllers/messages_controller_test.rb b/test/controllers/messages_controller_test.rb index 40581993f..dfec6346f 100644 --- a/test/controllers/messages_controller_test.rb +++ b/test/controllers/messages_controller_test.rb @@ -339,9 +339,9 @@ class MessagesControllerTest < ActionDispatch::IntegrationTest get inbox_messages_path assert_response :success assert_template "inbox" - assert_select ".content-inner > table", :count => 1 do - assert_select "tr", :count => 2 - assert_select "tr#inbox-#{read_message.id}.inbox-row", :count => 1 do + assert_select ".content-inner > table.messages-table > tbody", :count => 1 do + assert_select "tr", :count => 1 + assert_select "tr#inbox-#{read_message.id}", :count => 1 do assert_select "a[href='#{user_path read_message.sender}']", :text => read_message.sender.display_name assert_select "a[href='#{message_path read_message}']", :text => read_message.title end @@ -365,9 +365,9 @@ class MessagesControllerTest < ActionDispatch::IntegrationTest get outbox_messages_path assert_response :success assert_template "outbox" - assert_select ".content-inner > table", :count => 1 do - assert_select "tr", :count => 2 - assert_select "tr.inbox-row", :count => 1 do + assert_select ".content-inner > table.messages-table > tbody", :count => 1 do + assert_select "tr", :count => 1 + assert_select "tr#outbox-#{message.id}", :count => 1 do assert_select "a[href='#{user_path message.recipient}']", :text => message.recipient.display_name assert_select "a[href='#{message_path message}']", :text => message.title end