From 44925f8f6c87dbc61cc7193899f3465d5f40d79e Mon Sep 17 00:00:00 2001 From: nakamurakazuki Date: Thu, 6 Jun 2024 19:44:32 +0900 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E3=82=A2=E3=82=B5=E3=82=A4=E3=83=B3?= =?UTF-8?q?=E3=81=AE=E6=8F=90=E5=87=BA=E7=89=A9=E3=81=AE=E3=82=A2=E3=83=A9?= =?UTF-8?q?=E3=83=BC=E3=83=88=E3=82=92=E5=A4=89=E6=9B=B4=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=82=92=E5=A4=89=E6=9B=B4=E3=81=97?= =?UTF-8?q?=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/system/home_test.rb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/test/system/home_test.rb b/test/system/home_test.rb index 63f290e822d..0864664a916 100644 --- a/test/system/home_test.rb +++ b/test/system/home_test.rb @@ -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 @@ -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