-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0ba08c
commit f61b16a
Showing
3 changed files
with
50 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
staff_features/subjects/step_definitions/subject_import.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# 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']") | ||
|
||
elements.each do |element| | ||
element.find('input').click if element.text == string | ||
end | ||
end | ||
|
||
When 'the user selects the first Subject from the search results' do | ||
elements = all('#results div.lcnaf-result') | ||
elements[0].find('button').click | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters