From 5571babb6372b64f8d2e333449247ade3d71c76a Mon Sep 17 00:00:00 2001 From: Roman Rizzi Date: Wed, 15 Mar 2023 18:43:28 -0300 Subject: [PATCH] DEV: Fix AiHelper flaky system spec (#11) --- spec/system/page_objects/modals/ai_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/system/page_objects/modals/ai_helper.rb b/spec/system/page_objects/modals/ai_helper.rb index 8e68169c..20c57929 100644 --- a/spec/system/page_objects/modals/ai_helper.rb +++ b/spec/system/page_objects/modals/ai_helper.rb @@ -4,7 +4,7 @@ module PageObjects module Modals class AiHelper < PageObjects::Modals::Base def visible? - page.has_css?(".composer-ai-helper-modal") + page.has_css?(".composer-ai-helper-modal", wait: 5) end def select_helper_model(mode) @@ -13,7 +13,7 @@ module PageObjects end def save_changes - find(".modal-footer button.create").click + find(".modal-footer button.create", wait: 5).click end def select_title_suggestion(option_number)