Closed hasyrails closed 3 years ago
Failures: 1) トップページ 操作 ログイン時 ToDoリストを追加できる Got 0 failures and 2 other errors: 1.1) Failure/Error: (all(".list-add-form")[0]).set(add_list.title) NoMethodError: undefined method `set' for nil:NilClass [Screenshot]: tmp/screenshots/failures_r_spec_example_groups_nested_3_nested_nested_4_to_doリストを追加できる_550.png # ./spec/features/operations/ganttchart_page_spec.rb:88:in `block (4 levels) in <main>' 1.2) Failure/Error: find('.app-header-link-logout').click Capybara::ElementNotFound: Unable to find visible css ".app-header-link-logout" [Screenshot]: tmp/screenshots/failures_r_spec_example_groups_nested_3_nested_nested_4_to_doリストを追加できる_550.png # ./spec/features/operations/ganttchart_page_spec.rb:83:in `block (4 levels) in <main>' 2) トップページ 操作 ログイン時 ToDoリストを削除できる Got 0 failures and 2 other errors: 2.1) Failure/Error: (all(".delete-list-button")[0]).click NoMethodError: undefined method `click' for nil:NilClass [Screenshot]: tmp/screenshots/failures_r_spec_example_groups_nested_3_nested_nested_4_to_doリストを削除できる_712.png # ./spec/features/operations/ganttchart_page_spec.rb:94:in `block (4 levels) in <main>' 2.2) Failure/Error: find('.app-header-link-logout').click Capybara::ElementNotFound: Unable to find visible css ".app-header-link-logout" [Screenshot]: tmp/screenshots/failures_r_spec_example_groups_nested_3_nested_nested_4_to_doリストを削除できる_712.png # ./spec/features/operations/ganttchart_page_spec.rb:83:in `block (4 levels) in <main>' 3) トップページ 操作 ログイン時 ToDoカードを追加できる Got 0 failures and 2 other errors: 3.1) Failure/Error: (all(".card-add-form")[0]).set(add_card.body) NoMethodError: undefined method `set' for nil:NilClass [Screenshot]: tmp/screenshots/failures_r_spec_example_groups_nested_3_nested_nested_4_to_doカードを追加できる_20.png # ./spec/features/operations/ganttchart_page_spec.rb:100:in `block (4 levels) in <main>' 3.2) Failure/Error: find('.app-header-link-logout').click Capybara::ElementNotFound: Unable to find visible css ".app-header-link-logout" [Screenshot]: tmp/screenshots/failures_r_spec_example_groups_nested_3_nested_nested_4_to_doカードを追加できる_20.png # ./spec/features/operations/ganttchart_page_spec.rb:83:in `block (4 levels) in <main>' 4) Api::Cards GET /api/cards card一覧を取得する Failure/Error: expect(res.count).to eq 1 expected: 1 got: 0 (compared using ==) # ./spec/requests/api/cards_spec.rb:11:in `block (3 levels) in <main>' 5) Api::Cards POST /api/cards cardレコードが作成される Failure/Error: "id": card.id, NameError: undefined local variable or method `card' for #<RSpec::ExampleGroups::ApiCards::POSTApiCards:0x00007f9d015ef9c0> # ./spec/requests/api/cards_spec.rb:34:in `block (3 levels) in <main>' # ./spec/requests/api/cards_spec.rb:31:in `block (3 levels) in <main>' # ./spec/requests/api/cards_spec.rb:41:in `block (4 levels) in <main>' # ./spec/requests/api/cards_spec.rb:41:in `block (3 levels) in <main>' 6) Api::Cards PATCH /api/cards/:id 指定したcardレコードが更新される Failure/Error: let(:card) { create(:card) } ActiveRecord::NotNullViolation: Mysql2::Error: Field 'list_id' doesn't have a default value: INSERT INTO `cards` (`body`, `description`, `created_at`, `updated_at`) VALUES ('TestCardBody2', 'TestCardDescription2', '2020-11-08 08:48:50', '2020-11-08 08:48:50') # ./spec/requests/api/cards_spec.rb:48:in `block (3 levels) in <main>' # ./spec/requests/api/cards_spec.rb:56:in `block (3 levels) in <main>' # ------------------ # --- Caused by: --- # Mysql2::Error: # Field 'list_id' doesn't have a default value # ./spec/requests/api/cards_spec.rb:48:in `block (3 levels) in <main>' 7) Api::Cards PATCH /api/cards/:id 更新したcardレコードと紐づいたscheduleレコードが更新される Failure/Error: let!(:schedule) { create(:schedule) } ActiveRecord::RecordInvalid: Validation failed: Card must exist, User must exist # ./spec/requests/api/cards_spec.rb:68:in `block (3 levels) in <main>' 8) Api::Cards PATCH /api/cards/:id/deadlined 期限が過ぎたカードはdeadlined:true Failure/Error: create(:card, deadline: today) ActiveRecord::NotNullViolation: Mysql2::Error: Field 'list_id' doesn't have a default value: INSERT INTO `cards` (`body`, `description`, `deadline`, `created_at`, `updated_at`) VALUES ('TestCardBody3', 'TestCardDescription3', '2020-11-08', '2020-11-09 00:00:00', '2020-11-09 00:00:00') # ./spec/requests/api/cards_spec.rb:91:in `block (3 levels) in <main>' # ./spec/requests/api/cards_spec.rb:96:in `block (4 levels) in <main>' # ./spec/requests/api/cards_spec.rb:95:in `block (3 levels) in <main>' # ------------------ # --- Caused by: --- # Mysql2::Error: # Field 'list_id' doesn't have a default value # ./spec/requests/api/cards_spec.rb:91:in `block (3 levels) in <main>' 9) Api::Cards PATCH /api/cards/:id/deadlined 期限が過ぎていないカードはdeadlined:false Failure/Error: create(:card, deadline: today) ActiveRecord::NotNullViolation: Mysql2::Error: Field 'list_id' doesn't have a default value: INSERT INTO `cards` (`body`, `description`, `deadline`, `created_at`, `updated_at`) VALUES ('TestCardBody4', 'TestCardDescription4', '2020-11-08', '2020-11-07 00:00:00', '2020-11-07 00:00:00') # ./spec/requests/api/cards_spec.rb:91:in `block (3 levels) in <main>' # ./spec/requests/api/cards_spec.rb:104:in `block (4 levels) in <main>' # ./spec/requests/api/cards_spec.rb:103:in `block (3 levels) in <main>' # ------------------ # --- Caused by: --- # Mysql2::Error: # Field 'list_id' doesn't have a default value # ./spec/requests/api/cards_spec.rb:91:in `block (3 levels) in <main>' 10) Api::Cards DELETE /api/cards/:id 指定したcardレコードが削除される Failure/Error: let!(:card) { create(:card) } ActiveRecord::NotNullViolation: Mysql2::Error: Field 'list_id' doesn't have a default value: INSERT INTO `cards` (`body`, `description`, `created_at`, `updated_at`) VALUES ('TestCardBody5', 'TestCardDescription5', '2020-11-08 08:48:50', '2020-11-08 08:48:50') # ./spec/requests/api/cards_spec.rb:113:in `block (3 levels) in <main>' # ------------------ # --- Caused by: --- # Mysql2::Error: # Field 'list_id' doesn't have a default value # ./spec/requests/api/cards_spec.rb:113:in `block (3 levels) in <main>' 11) Api::Lists GET /api/lists list一覧を取得する Failure/Error: before { create_list(:list, 3) } ActiveRecord::RecordInvalid: Validation failed: User must exist # ./spec/requests/api/lists_spec.rb:6:in `block (3 levels) in <main>' 12) Api::Lists POST /api/lists listレコードが作成される Failure/Error: expect { subject }.to change { List.count }.by(1) expected `List.count` to have changed by 1, but was changed by 0 # ./spec/requests/api/lists_spec.rb:28:in `block (3 levels) in <main>' 13) Api::Lists DELETE /api/lists/:id 指定したlistレコードが削除される Failure/Error: let!(:list) { create(:list) } ActiveRecord::RecordInvalid: Validation failed: User must exist # ./spec/requests/api/lists_spec.rb:49:in `block (3 levels) in <main>' 14) Api::Schedules GET /api/schedules schedule一覧を取得する Failure/Error: before { create(:schedule) } ActiveRecord::RecordInvalid: Validation failed: Card must exist, User must exist # ./spec/requests/api/schedules_spec.rb:6:in `block (3 levels) in <main>' 15) Api::Schedules POST /api/schedules scheduleレコードが作成される Failure/Error: expect { subject }.to change { Schedule.count }.by(1) expected `Schedule.count` to have changed by 1, but was changed by 0 # ./spec/requests/api/schedules_spec.rb:60:in `block (3 levels) in <main>' 16) Api::Schedules PATCH /api/schedules/:id 指定したscheduleレコードが更新される Failure/Error: let(:schedule) { create(:schedule) } ActiveRecord::RecordInvalid: Validation failed: Card must exist, User must exist # ./spec/requests/api/schedules_spec.rb:67:in `block (3 levels) in <main>' # ./spec/requests/api/schedules_spec.rb:75:in `block (3 levels) in <main>' 17) Api::Schedules DELETE /api/schedules/:id 指定したscheduleレコードが削除される Failure/Error: let!(:schedule) { create(:schedule) } ActiveRecord::RecordInvalid: Validation failed: Card must exist, User must exist # ./spec/requests/api/schedules_spec.rb:86:in `block (3 levels) in <main>' Finished in 1 minute 42.2 seconds (files took 3.29 seconds to load) 107 examples, 17 failures