Revision 23765
Added by Marius BĂLTEANU about 1 month ago
branches/6.0-stable/test/application_system_test_case.rb | ||
---|---|---|
72 | 72 |
# Should not depend on locale since Redmine displays login page |
73 | 73 |
# using default browser locale which depend on system locale for "real" browsers drivers |
74 | 74 |
def log_user(login, password) |
75 |
visit '/my/page'
|
|
75 |
assert_current_path '/login', :ignore_query => true
|
|
76 | 76 |
assert_equal '/login', current_path |
77 | 77 |
within('#login-form form') do |
78 | 78 |
fill_in 'username', :with => login |
79 | 79 |
fill_in 'password', :with => password |
80 | 80 |
find('input[name=login]').click |
81 | 81 |
end |
82 |
assert_equal '/my/page', current_path
|
|
82 |
assert_current_path '/my/page', :ignore_query => true
|
|
83 | 83 |
end |
84 | 84 |
|
85 | 85 |
def wait_for_ajax |
Also available in: Unified diff
Merge r23761 from trunk to 6.0-stable (#42422).