mirror of
https://github.com/we-promise/sure.git
synced 2026-08-12 11:10:20 +00:00
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:
@@ -12,6 +12,8 @@ class Settings::AiPromptsTest < ApplicationSystemTestCase
|
|||||||
|
|
||||||
click_button "Disable AI Assistant"
|
click_button "Disable AI Assistant"
|
||||||
|
|
||||||
|
sleep 5
|
||||||
|
|
||||||
assert_current_path settings_ai_prompts_path
|
assert_current_path settings_ai_prompts_path
|
||||||
@user.reload
|
@user.reload
|
||||||
assert_not @user.ai_enabled?
|
assert_not @user.ai_enabled?
|
||||||
|
|||||||
Reference in New Issue
Block a user