From 46ec7e4b666b3e6bc9940379e5d605b2b42a1211 Mon Sep 17 00:00:00 2001 From: Adrien Poly Date: Sun, 24 Nov 2024 09:11:41 +0100 Subject: [PATCH] fix tests --- test/controllers/topics_controller_test.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/controllers/topics_controller_test.rb b/test/controllers/topics_controller_test.rb index 042c24025..b470223a5 100644 --- a/test/controllers/topics_controller_test.rb +++ b/test/controllers/topics_controller_test.rb @@ -26,12 +26,11 @@ class TopicsControllerTest < ActionDispatch::IntegrationTest get topic_url(@topic1) assert_response :success assert_select "h1", @topic1.name - assert_select "#topic-talks > div", 1 - assert_select "##{dom_id(@talk)} h2", @talk.title + assert_select "turbo-frame#grid-talks", 1 get topic_url(@topic2) assert_response :success assert_select "h1", @topic2.name - assert_select "#topic-talks > div", 0 + assert_select "turbo-frame#grid-talks", 1 end end