-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50f0188
commit a11907c
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |