Skip to content

Commit ed8f0d1

Browse files
committed
Wait for shared member rows
Use the default Capybara wait when checking filtered share rows on the members page. The sidebar permission filters navigate with Turbo, so the previous 0.5s poll was too short for share_spec.rb:101.
1 parent 0f91641 commit ed8f0d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/support/pages/members.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def has_added_group?(name)
148148
# is why there must be only an edit and no delete button.
149149
def has_user?(name, roles: nil, group_membership: nil, group: false)
150150
css = group ? "tr.group" : "tr"
151-
has_selector?(css, text: name, wait: 0.5) &&
151+
has_selector?(css, text: name, wait: Capybara.default_max_wait_time) &&
152152
(roles.nil? || has_roles?(name, roles, group:)) &&
153153
(group_membership.nil? || group_membership == has_group_membership?(name))
154154
end

0 commit comments

Comments
 (0)