Skip to content

Commit 50dd2f9

Browse files
committed
Bugfix Admin Login for Tests
1 parent 77f326c commit 50dd2f9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

evaluationserver/spec/support/features/session_helpers.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
module Features
22
module SessionHelpers
33
def authenticate_as_admin
4+
visit root_path
5+
click_link(t('layout.admin_on'))
46
admin_user = "admin"
5-
page.driver.browser.authorize(admin_user,ENV['ADMIN_PASSWORD'])
7+
page.driver.browser.basic_authorize(admin_user,ENV['ADMIN_PASSWORD'])
68
end
79

810

0 commit comments

Comments
 (0)