Skip to content

Commit

Permalink
Update waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
blacksmith-welder committed Sep 9, 2024
1 parent ec9a0d4 commit b8ef8d4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions staff_features/accessions/step_definitions/accession_delete.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@
check 'multiselect-item'
end

if find('button', text: 'Delete').disabled?
sleep 10
checks = 0
delete_button_is_disabled = find('button', text: 'Delete').disabled?
while delete_button_is_disabled && checks < 20
checks += 1

expect(find('button', text: 'Delete').disabled?).to eq false
sleep 1

delete_button_is_disabled = find('button', text: 'Delete').disabled?
end
end

Expand Down

0 comments on commit b8ef8d4

Please sign in to comment.