Skip to content

Commit

Permalink
企業ロゴ関連のflakyなテストの内容を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
taco committed Mar 7, 2024
1 parent c365240 commit e0b1ba6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/system/answers_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/system/attachments_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion test/system/comments_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e0b1ba6

Please sign in to comment.