From 8860450e90664dbc2eafc4f87e5c9cf9ea349ccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Mata?= Date: Sat, 1 Nov 2025 10:25:14 +0100 Subject: [PATCH] Add delay after disabling AI Assistant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added a sleep delay to ensure the AI Assistant is properly disabled before asserting the path and user state. Signed-off-by: Juan José Mata --- test/system/settings/ai_prompts_test.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/system/settings/ai_prompts_test.rb b/test/system/settings/ai_prompts_test.rb index 0dbb66689..519b2758b 100644 --- a/test/system/settings/ai_prompts_test.rb +++ b/test/system/settings/ai_prompts_test.rb @@ -12,6 +12,8 @@ class Settings::AiPromptsTest < ApplicationSystemTestCase click_button "Disable AI Assistant" + sleep 5 + assert_current_path settings_ai_prompts_path @user.reload assert_not @user.ai_enabled?