Skip to content

Commit

Permalink
Fix accession delete feature
Browse files Browse the repository at this point in the history
  • Loading branch information
blacksmith-welder committed Sep 9, 2024
1 parent b8ef8d4 commit 2ac22dd
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions staff_features/accessions/step_definitions/accession_delete.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
fill_in 'Filter by text', with: @uuid

find('#filter-text').send_keys(:enter)

rows = all('tr', text: @uuid)
expect(rows.length).to eq 1
end

When 'the user clicks on the checkbox of the Accession' do
Expand All @@ -29,15 +32,7 @@
check 'multiselect-item'
end

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

sleep 1

delete_button_is_disabled = find('button', text: 'Delete').disabled?
end
# expect(find('button', text: 'Delete').disabled?).to eq false
end

When 'the user confirms the delete action' do
Expand Down

0 comments on commit 2ac22dd

Please sign in to comment.