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 Mar 5, 2025
1 parent 3506790 commit f2e6d2d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 43 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
15 changes: 0 additions & 15 deletions staff_features/agents/step_definitions/agent_shared.rb

This file was deleted.

2 changes: 1 addition & 1 deletion staff_features/agents/step_definitions/agent_view.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,5 @@
end

Then 'the Agent view page is displayed' do
expect(find('h2').text).to eq "#{@uuid} Agent"
expect(find('h2').text).to eq "Agent #{@uuid} Agent"
end
6 changes: 0 additions & 6 deletions staff_features/subjects/step_definitions/subject_import.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# frozen_string_literal: true

When 'the user clicks on the gear icon' do
within '.repo-container' do
find('.btn.btn-default.navbar-btn.dropdown-toggle').click
end
end

When 'the user checks {string} in the LCNAF Import form' do |string|
elements = all(:css, "div[class*='radio']")

Expand Down

0 comments on commit f2e6d2d

Please sign in to comment.