Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

Commit e38b876

Browse files
committed
try_until_success
1 parent 81f21d1 commit e38b876

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/system/page_objects/components/topic_list.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ module PageObjects
44
module Components
55
class TopicList < PageObjects::Components::Base
66
def has_assigned_status?(topic)
7-
page.has_css?("#{topic_list_item_assigned(topic)}", visible: :all)
7+
try_until_success { page.has_css?("#{topic_list_item_assigned(topic)}") }
88
end
99

1010
def has_unassigned_status?(topic)
11-
page.has_no_css?("#{topic_list_item_assigned(topic)}", visible: :all)
11+
try_until_success { page.has_no_css?("#{topic_list_item_assigned(topic)}") }
1212
end
1313

1414
private

0 commit comments

Comments
 (0)