Skip to content

Commit

Permalink
テストコードを追加した
Browse files Browse the repository at this point in the history
  • Loading branch information
choco0809 committed Oct 1, 2022
1 parent 0a11930 commit 6f5453c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/system/home_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -361,4 +361,21 @@ class HomeTest < ApplicationSystemTestCase
visit_with_auth '/', 'kimura'
assert_no_selector 'h2.card-header__title', text: '研修生'
end

test 'delete bookmark for latest bookmarks on dashboard' do
visit_with_auth '/', 'kimura'

reports = %i[report68 report69 report70 report71]
reports.each do |report|
visit "/reports/#{reports(report).id}"
find('#bookmark-button').click
end
assert_text 'Bookmarkしました!'

visit '/'
find('#bookmark_edit').click
first('.bookmark-delete-button').click
assert_text 'Bookmarkを削除しました。'
assert_no_text '名前の長いメンター用'
end
end

0 comments on commit 6f5453c

Please sign in to comment.