Commit d5d5c73 1 parent 888853b commit d5d5c73 Copy full SHA for d5d5c73
File tree 2 files changed +3
-5
lines changed
staff_features/repositories
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,7 @@ def login_archivist
61
61
62
62
begin
63
63
element = find ( '.alert.alert-danger.with-hide-alert' )
64
- if element . text == 'Login attempt failed'
65
- raise "Login failed for user: archivist-user-#{ uuid } "
66
- end
64
+ raise "Login failed for user: archivist-user-#{ uuid } " if element . text == 'Login attempt failed'
67
65
rescue Capybara ::ElementNotFound
68
66
# Pass on successful login
69
67
end
Original file line number Diff line number Diff line change 11
11
12
12
rows = all ( '#tabledSearchResults tbody tr' )
13
13
14
- expect ( rows . length > 0 ) . to eq true
14
+ expect ( rows . length . positive? ) . to eq true
15
15
16
16
within rows [ 0 ] do
17
- click_on " View"
17
+ click_on ' View'
18
18
end
19
19
20
20
respository_id = current_url . split ( '/' ) . pop
You can’t perform that action at this time.
0 commit comments