Skip to content

Commit

Permalink
企業研修申し込みの個別ページのテストを作成
Browse files Browse the repository at this point in the history
  • Loading branch information
hagiya0121 committed Dec 28, 2024
1 parent 50f0188 commit a11907c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/system/admin/corporate_training_inquiries.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,20 @@ class Admin::CorporateTrainingInquiriesTest < ApplicationSystemTestCase
assert_text '株式会社テスト20'
assert_selector '.card-list-item', count: 20
end

test 'displays corporate training inquiry details correctly' do
inquiry = corporate_training_inquiries(:corporate_training_inquiry1)
visit_with_auth admin_corporate_training_inquiry_path(inquiry), 'komagata'
assert_equal '企業研修申し込み | FBC', title
assert_selector 'h1', text: '株式会社テスト1(テストユーザー1様)'
assert_text '株式会社テスト1(担当者: テストユーザー1様)'
assert_text '[email protected]'
assert_text '2030年12月02日(月) 10:00'
assert_text '2030年12月03日(火) 10:00'
assert_text '2030年12月04日(水) 10:00'
assert_text '10人'
assert_text '1ヶ月'
assert_text 'よろしくお願いします。'
assert_text 'WEB検索'
end
end

0 comments on commit a11907c

Please sign in to comment.