diff --git a/spec/features/issues/bulk_assignment_labels_spec.rb b/spec/features/issues/bulk_assignment_labels_spec.rb index 309d2435e28..7143d0e40f3 100644 --- a/spec/features/issues/bulk_assignment_labels_spec.rb +++ b/spec/features/issues/bulk_assignment_labels_spec.rb @@ -191,7 +191,7 @@ feature 'Issues > Labels bulk assignment', feature: true do if unmark items.map do |item| # Make sure we are unmarking the item no matter the state it has currently - click_link item while find('a', text: item)[:class] == 'label-item' + click_link item until find('a', text: item)[:class] == 'label-item' end end end