From 9e468196942a2821cb4803079dfb075268f4d0e2 Mon Sep 17 00:00:00 2001 From: Finn Bacall Date: Tue, 10 Dec 2024 18:21:09 +0000 Subject: [PATCH] Update tests now that the outer "activity" div is gone --- test/controllers/collections_controller_test.rb | 2 +- test/controllers/learning_path_topics_controller_test.rb | 2 +- test/controllers/learning_paths_controller_test.rb | 2 +- test/controllers/materials_controller_test.rb | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/controllers/collections_controller_test.rb b/test/controllers/collections_controller_test.rb index 1fe200d6e..24d80f13e 100644 --- a/test/controllers/collections_controller_test.rb +++ b/test/controllers/collections_controller_test.rb @@ -576,7 +576,7 @@ class CollectionsControllerTest < ActionController::TestCase get :index, params: { collection_id: @collection }, xhr: true - assert_select '.activity', count: 4 # +1 because they are wrapped in a .activity div for some reason... + assert_select '.activity', count: 3 @controller = old_controller end diff --git a/test/controllers/learning_path_topics_controller_test.rb b/test/controllers/learning_path_topics_controller_test.rb index 3ce918b27..5ef32ee02 100644 --- a/test/controllers/learning_path_topics_controller_test.rb +++ b/test/controllers/learning_path_topics_controller_test.rb @@ -467,7 +467,7 @@ class LearningPathTopicsControllerTest < ActionController::TestCase get :index, params: { learning_path_topic_id: @learning_path_topic }, xhr: true - assert_select '.activity', count: 4 # +1 because they are wrapped in a .activity div for some reason... + assert_select '.activity', count: 3 @controller = old_controller end diff --git a/test/controllers/learning_paths_controller_test.rb b/test/controllers/learning_paths_controller_test.rb index 2733fded6..7b3f88086 100644 --- a/test/controllers/learning_paths_controller_test.rb +++ b/test/controllers/learning_paths_controller_test.rb @@ -432,7 +432,7 @@ class LearningPathsControllerTest < ActionController::TestCase get :index, params: { learning_path_id: @learning_path }, xhr: true - assert_select '.activity', count: 5 # +1 because they are wrapped in a .activity div for some reason... + assert_select '.activity', count: 4 @controller = old_controller end diff --git a/test/controllers/materials_controller_test.rb b/test/controllers/materials_controller_test.rb index 64f17b1c1..b8295fb2d 100644 --- a/test/controllers/materials_controller_test.rb +++ b/test/controllers/materials_controller_test.rb @@ -985,7 +985,7 @@ class MaterialsControllerTest < ActionController::TestCase get :index, params: { material_id: @material }, xhr: true - assert_select '.activity', count: 6 # +1 because they are wrapped in a .activity div for some reason... + assert_select '.activity', count: 5 @controller = old_controller end @@ -1013,7 +1013,7 @@ class MaterialsControllerTest < ActionController::TestCase get :index, params: { material_id: @material }, xhr: true - assert_select '.activity', count: 3 # +1 because they are wrapped in a .activity div for some reason... + assert_select '.activity', count: 2 @controller = old_controller end