Commit f57ac15 1 parent e14a27f commit f57ac15 Copy full SHA for f57ac15
File tree 1 file changed +2
-19
lines changed
1 file changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -101,25 +101,8 @@ def ensure_test_user_exists
101
101
102
102
click_on 'Create Account' , match : :first
103
103
104
- if page . has_text? "Username - Username 'test' is already in use"
105
- visit STAFF_URL
106
-
107
- return nil
108
- end
109
-
110
- visit "#{ STAFF_URL } /users/manage_access"
111
-
112
- rows = all ( 'tr' , text : 'test' )
113
- expect ( rows . length ) . to eq 1
114
-
115
- within rows [ 0 ] do
116
- click_on 'Edit Groups'
117
- end
118
-
119
- unless find ( '#repository-advanced-data-entry' ) . checked?
120
- check 'repository-advanced-data-entry'
121
- click_on 'Update Account'
122
- end
104
+ raise 'Could not create test user' if page . has_text? ( 'User not created' ) &&
105
+ !page . has_text? ( "Username - Username 'test' is already in use" )
123
106
124
107
visit STAFF_URL
125
108
end
You can’t perform that action at this time.
0 commit comments