DEV: Fix AiHelper flaky system spec (#11)

This commit is contained in:
Roman Rizzi 2023-03-15 18:43:28 -03:00 committed by GitHub
parent 80d662e9e8
commit 5571babb63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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