Skip to content

Commit

Permalink
未アサインの提出物のアラートを変更するテストを変更した
Browse files Browse the repository at this point in the history
  • Loading branch information
nakamu-kazu222 committed Jun 6, 2024
1 parent b28d8f2 commit 44925f8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/system/home_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ def assert_events_count(event_label, count)
assert_text '6日以上経過(7)'
assert_text '5日経過(1)'
assert_text '4日経過(1)'
assert_no_text '今日提出(55)'
end

test 'display counts of passed almost 5days' do
Expand All @@ -334,6 +333,19 @@ def assert_events_count(event_label, count)
assert_text "しばらく4日経過に到達する\n提出物はありません。"
end

test 'select product deadlines' do
visit_with_auth '/', 'mentormentaro'

find('.mt-4.text-sm.text-center', text: '提出物チェックの期限を変更する。').click
find('.modal', text: '提出物チェックの期限を変更する。').click

select '期限5日(3日経過 4日経過 5日以上経過)'

assert_text '5日以上経過(8)'
assert_text '4日経過(1)'
assert_text '3日経過(2)'
end

test 'work link of passed almost 5days' do
visit_with_auth '/', 'mentormentaro'
find('.under-cards').click
Expand Down

0 comments on commit 44925f8

Please sign in to comment.