問題について・エラー内容
Rspecを流すと、preset_date
のとこだけエラーになる。
他の箇所では落ちないのに、なんでここだけ落ちるのか。
一応、エラー内容貼っときます。
Failures: 1) ClickLogReport click 先月のクリックログのデータが1件のとき 先月で検索して総件数が1件であること Failure/Error: select "先月", from: "preset_date" Capybara::ElementNotFound: Unable to find select box "preset_date" that is not disabled and Unable to find input box with datalist completion "preset_date" that is not disabled # ./spec/features/administrator/report_controller/click_log_report_spec.rb:939:in `block (4 levels) in <top (required)>' # ------------------ # --- Caused by: --- # Capybara::ElementNotFound: # Unable to find select box "preset_date" that is not disabled # ./spec/features/administrator/report_controller/click_log_report_spec.rb:939:in `block (4 levels) in <top (required)>' 2) ClickLogReport click 先月のクリックログのデータが2件のとき 先月で検索して総件数が2件であること Failure/Error: select "先月", from: "preset_date" Capybara::ElementNotFound: Unable to find select box "preset_date" that is not disabled and Unable to find input box with datalist completion "preset_date" that is not disabled # ./spec/features/administrator/report_controller/click_log_report_spec.rb:953:in `block (4 levels) in <top (required)>' # ------------------ # --- Caused by: --- # Capybara::ElementNotFound: # Unable to find select box "preset_date" that is not disabled # ./spec/features/administrator/report_controller/click_log_report_spec.rb:953:in `block (4 levels) in <top (required)>' Finished in 2 minutes 19.2 seconds (files took 1 minute 44.87 seconds to load) 45 examples, 2 failures, 1 pending
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。