From f346c57c3d3753b06ed6affe0c88e155cdc44442 Mon Sep 17 00:00:00 2001 From: ayu-0505 Date: Fri, 8 Nov 2024 13:43:14 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B7=E3=82=B9=E3=83=86=E3=83=A0=E3=83=86?= =?UTF-8?q?=E3=82=B9=E3=83=88=E3=81=AE=E6=97=A5=E5=A0=B1=E4=BD=9C=E6=88=90?= =?UTF-8?q?=E6=97=A5=E4=BB=98=E3=82=92=E9=81=8E=E5=8E=BB=E3=81=AE=E5=9F=BA?= =?UTF-8?q?=E6=BA=96=E6=97=A5=E5=89=8D=E3=81=AB=E5=A4=89=E6=9B=B4=E3=80=81?= =?UTF-8?q?=E3=83=A2=E3=83=87=E3=83=AB=E3=83=90=E3=83=AA=E3=83=87=E3=83=BC?= =?UTF-8?q?=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=8B=E3=82=89HTML=E3=83=90?= =?UTF-8?q?=E3=83=AA=E3=83=87=E3=83=BC=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=AE?= =?UTF-8?q?=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/system/reports_test.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/system/reports_test.rb b/test/system/reports_test.rb index 073f3152439..f6a35884ce5 100644 --- a/test/system/reports_test.rb +++ b/test/system/reports_test.rb @@ -475,10 +475,12 @@ def wait_for_watch_change within('form[name=report]') do fill_in('report[title]', with: '学習日が2013年1月1日より前では日報を作成できない') fill_in('report[description]', with: 'エラーになる') - fill_in('report[reported_on]', with: Date.new(2013, 1, 1)) + fill_in('report[reported_on]', with: Date.new(2012, 12, 31)) end click_button '提出' - assert_text '学習日は2013年01月01日から今日以前の間の日付にしてください' + html_validataion_message = page.find('#report_reported_on').native.attribute('validationMessage') + assert_not_nil html_validataion_message + assert_not_empty html_validataion_message end test 'display recently reports' do