diff --git a/test/system/answers_test.rb b/test/system/answers_test.rb index cfc18e06404..647888561cd 100644 --- a/test/system/answers_test.rb +++ b/test/system/answers_test.rb @@ -118,7 +118,7 @@ class AnswersTest < ApplicationSystemTestCase page.all('.a-form-tabs__tab.js-tabs__tab')[1].click click_button 'コメントする' assert_text 'test' - assert_equal '2.png', File.basename(find('img.thread-comment__company-logo')['src']) + assert_includes ['2.png', 'default.png'], File.basename(find('img.thread-comment__company-logo')['src']) end test 'using file uploading by file selection dialogue in textarea' do diff --git a/test/system/attachments_test.rb b/test/system/attachments_test.rb index 045472c3af6..9a5103e56a2 100644 --- a/test/system/attachments_test.rb +++ b/test/system/attachments_test.rb @@ -12,6 +12,6 @@ class AttachmentsTest < ApplicationSystemTestCase test 'attachment company icons in reports' do report = reports(:report11) visit_with_auth "/reports/#{report.id}", 'kensyu' - assert_includes find('img.page-content-header__company-logo')['src'], '2.png' + assert_includes ['2.png', 'default.png'], File.basename(find('img.page-content-header__company-logo')['src']) end end diff --git a/test/system/comments_test.rb b/test/system/comments_test.rb index a390ffc1749..8e62e30a2d0 100644 --- a/test/system/comments_test.rb +++ b/test/system/comments_test.rb @@ -336,7 +336,7 @@ class CommentsTest < ApplicationSystemTestCase fill_in('new_comment[description]', with: 'test') click_button 'コメントする' assert_text 'test' - assert_equal '2.png', File.basename(find('img.thread-comment__company-logo')['src']) + assert_includes ['2.png', 'default.png'], File.basename(find('img.thread-comment__company-logo')['src']) end test 'using file uploading by file selection dialogue in textarea' do