Project

General

Profile

Patch #42422 » 0001-Use-Capybara-s-assert_current_path-in-login-steps-to.patch

Takuya Kodama, 2025-03-17 03:21

View differences:

actual
1
"/my/page"
1
"/login"
test/application_system_test_case.rb
68 68
  # using default browser locale which depend on system locale for "real" browsers drivers
69 69
  def log_user(login, password)
70 70
    visit '/my/page'
71
    assert_equal '/login', current_path
71
    assert_current_path '/login'
72 72
    within('#login-form form') do
73 73
      fill_in 'username', :with => login
74 74
      fill_in 'password', :with => password
75 75
      find('input[name=login]').click
76 76
    end
77
    assert_equal '/my/page', current_path
77
    assert_current_path '/my/page'
78 78
  end
79 79

  
80 80
  def wait_for_ajax
(1-1/2)