Skip to content

Commit

Permalink
Remove duplicate steps
Browse files Browse the repository at this point in the history
  • Loading branch information
blacksmith-welder committed Feb 27, 2025
1 parent c54d7c1 commit 53f6037
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions staff_features/agents/step_definitions/agent_delete.rb
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
# frozen_string_literal: true

When 'the user filters by text with the Agent name' do
fill_in 'Filter by text', with: @uuid

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

rows = []
checks = 0

while checks < 5
checks += 1

begin
rows = all('tr', text: @uuid)
rescue Selenium::WebDriver::Error::JavascriptError
sleep 1
end

break if rows.length == 1
end
end

When 'the user checks the checkbox of the Agent' do
find('#multiselect-item').check
end
Expand Down

0 comments on commit 53f6037

Please sign in to comment.