Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate steps #108

Merged
merged 2 commits into from
Mar 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cucumber-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
ruby-version: '3.2.0'
- name: Cache gems
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
Expand Down
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
Loading