Skip to content

Commit

Permalink
テストを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
TakashimaAyaka authored and TakashimaAyaka committed Sep 23, 2022
1 parent 9eaadea commit b51de83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/system/hibernation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class HibernationTest < ApplicationSystemTestCase
end

VCR.use_cassette 'subscription/update', vcr_options do
find('.is-checkbox').click
click_on '休会する'
page.driver.browser.switch_to.alert.accept
assert_text '休会処理が完了しました'
Expand All @@ -31,6 +32,7 @@ class HibernationTest < ApplicationSystemTestCase
fill_in('hibernation[reason]', with: 'test')
end

find('.is-checkbox').click
click_on '休会する'
page.driver.browser.switch_to.alert.accept
assert_text '復帰予定日を入力してください'
Expand Down
3 changes: 3 additions & 0 deletions test/system/notification/hibernation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Notification::HibernationTest < ApplicationSystemTestCase
visit_with_auth new_hibernation_path, 'kimura'
fill_in 'hibernation[scheduled_return_on]', with: Time.current.next_month
fill_in 'hibernation[reason]', with: 'テストのため'
find('.is-checkbox').click
accept_confirm do
click_button '休会する'
end
Expand All @@ -44,6 +45,7 @@ class Notification::HibernationTest < ApplicationSystemTestCase
visit_with_auth new_hibernation_path, 'kensyu'
fill_in 'hibernation[scheduled_return_on]', with: Time.current.next_month
fill_in 'hibernation[reason]', with: 'テストのため'
find('.is-checkbox').click
accept_confirm do
click_button '休会する'
end
Expand All @@ -66,6 +68,7 @@ class Notification::HibernationTest < ApplicationSystemTestCase
visit_with_auth new_hibernation_path, 'senpai'
fill_in 'hibernation[scheduled_return_on]', with: Time.current.next_month
fill_in 'hibernation[reason]', with: 'テストのため'
find('.is-checkbox').click
accept_confirm do
click_button '休会する'
end
Expand Down

0 comments on commit b51de83

Please sign in to comment.