Add delay after disabling AI Assistant

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 <juanjo.mata@gmail.com>
This commit is contained in:
Juan José Mata
2025-11-01 10:25:14 +01:00
committed by GitHub
parent 0327552a9a
commit 8860450e90

View File

@@ -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?