Skip to content

Commit

Permalink
実験 questions_testの対応
Browse files Browse the repository at this point in the history
  • Loading branch information
ogawa-tomo committed Oct 16, 2023
1 parent ee5a522 commit 9f08365
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/system/notification/questions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -303,15 +303,16 @@ class Notification::QuestionsTest < ApplicationSystemTestCase
)

travel_to Time.zone.local(2022, 11, 6, 0, 0, 0) do
visit_with_auth '/scheduler/daily/notify_certain_period_passed_after_last_answer', 'kimura'
visit '/notifications'
visit '/scheduler/daily/notify_certain_period_passed_after_last_answer'
visit_with_auth '/notifications', 'kimura'

assert_no_text 'Q&A「テストの質問」のベストアンサーがまだ選ばれていません。'
end
logout

travel_to Time.zone.local(2022, 11, 7, 0, 0, 0) do
visit_with_auth '/scheduler/daily/notify_certain_period_passed_after_last_answer', 'kimura'
visit '/notifications'
visit '/scheduler/daily/notify_certain_period_passed_after_last_answer'
visit_with_auth '/notifications', 'kimura'

assert_text 'Q&A「テストの質問」のベストアンサーがまだ選ばれていません。'
end
Expand Down

0 comments on commit 9f08365

Please sign in to comment.