Skip to content

Commit

Permalink
重い処理を減らすために、リンクのテストを削除
Browse files Browse the repository at this point in the history
  • Loading branch information
a-kuroki-gs committed Mar 19, 2024
1 parent 61a5d75 commit a25728e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions test/system/admin/inquiries_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,10 @@ class Admin::InquiriesTest < ApplicationSystemTestCase
end

test 'show inquiry details' do
visit_with_auth '/admin/inquiries', 'komagata'
find('.card-list-item-title', text: 'inquiry1 様 ([email protected])').click

visit_with_auth "/admin/inquiries/#{inquiries(:inquiry1).id}", 'komagata'
assert_text inquiries(:inquiry1).name
assert_text inquiries(:inquiry1).email
assert_text I18n.l inquiries(:inquiry1).created_at.to_date
assert_text inquiries(:inquiry1).body
end

test 'click on the link of back to inquiries index' do
visit_with_auth "/admin/inquiries/#{inquiries(:inquiry1).id}", 'komagata'
click_link 'お問い合わせ一覧へ'

assert_selector 'h1.page-main-header__title', text: 'お問い合わせ一覧'
end
end

0 comments on commit a25728e

Please sign in to comment.