patch account_path, :params => { :user => new_attributes }
assert_response :success
assert_template :edit
- assert_select ".notice", false
+ assert_select ".alert-success", false
assert_select "form#accountForm > div > input.is-invalid#user_display_name"
# Changing name to one that exists should fail, regardless of case
patch account_path, :params => { :user => new_attributes }
assert_response :success
assert_template :edit
- assert_select ".notice", false
+ assert_select ".alert-success", false
assert_select "form#accountForm > div > input.is-invalid#user_display_name"
# Changing name to one that doesn't exist should work
get edit_account_path
assert_response :success
assert_template :edit
- assert_select ".notice", /^User information updated successfully/
+ assert_select ".alert-success", /^User information updated successfully/
assert_select "form#accountForm > div > input#user_display_name[value=?]", "new tester"
# Record the change of name
end
assert_response :success
assert_template :edit
- assert_select ".notice", false
+ assert_select ".alert-success", false
assert_select "form#accountForm > div > input.is-invalid#user_new_email"
# Changing email to one that exists should fail, regardless of case
end
assert_response :success
assert_template :edit
- assert_select ".notice", false
+ assert_select ".alert-success", false
assert_select "form#accountForm > div > input.is-invalid#user_new_email"
# Changing email to one that doesn't exist should work
get edit_account_path
assert_response :success
assert_template :edit
- assert_select ".notice", /^User information updated successfully/
+ assert_select ".alert-success", /^User information updated successfully/
assert_select "form#accountForm > div > input#user_new_email[value=?]", user.new_email
email = ActionMailer::Base.deliveries.first
assert_equal 1, email.to.count
assert_template "sessions/new"
assert_select "span.username", false
- assert_select "div.flash.error", /your account has been suspended/ do
+ assert_select "div.alert.alert-danger", /your account has been suspended/ do
assert_select "a[href='mailto:openstreetmap@example.com']", "support"
end
end
assert_template "sessions/new"
assert_select "span.username", false
- assert_select "div.flash.error", /your account has been suspended/ do
+ assert_select "div.alert.alert-danger", /your account has been suspended/ do
assert_select "a[href='mailto:openstreetmap@example.com']", "support"
end
end
assert_template "sessions/new"
assert_select "span.username", false
- assert_select "div.flash.error", /your account has been suspended/ do
+ assert_select "div.alert.alert-danger", /your account has been suspended/ do
assert_select "a[href='mailto:openstreetmap@example.com']", "support"
end
end
assert_template "sessions/new"
assert_select "span.username", false
- assert_select "div.flash.error", /your account has been suspended/ do
+ assert_select "div.alert.alert-danger", /your account has been suspended/ do
assert_select "a[href='mailto:openstreetmap@example.com']", "support"
end
end
assert_template "sessions/new"
assert_select "span.username", false
- assert_select "div.flash.error", /your account has been suspended/ do
+ assert_select "div.alert.alert-danger", /your account has been suspended/ do
assert_select "a[href='mailto:openstreetmap@example.com']", "support"
end
end
assert_template "sessions/new"
assert_select "span.username", false
- assert_select "div.flash.error", /your account has been suspended/ do
+ assert_select "div.alert.alert-danger", /your account has been suspended/ do
assert_select "a[href='mailto:openstreetmap@example.com']", "support"
end
end
assert_response :success
assert_template "sessions/new"
assert_select "span.username", false
- assert_select "div.flash.error", /your account has been suspended/ do
+ assert_select "div.alert.alert-danger", /your account has been suspended/ do
assert_select "a[href='mailto:openstreetmap@example.com']", "support"
end
end
follow_redirect!
assert_response :success
assert_template "sessions/new"
- assert_select "div.flash.error", "Connection to authentication provider failed"
+ assert_select "div.alert.alert-danger", "Connection to authentication provider failed"
assert_select "span.username", false
end
follow_redirect!
assert_response :success
assert_template "sessions/new"
- assert_select "div.flash.error", "Invalid authentication credentials"
+ assert_select "div.alert.alert-danger", "Invalid authentication credentials"
assert_select "span.username", false
end
assert_response :success
assert_template "sessions/new"
assert_select "span.username", false
- assert_select "div.flash.error", /your account has been suspended/ do
+ assert_select "div.alert.alert-danger", /your account has been suspended/ do
assert_select "a[href='mailto:openstreetmap@example.com']", "support"
end
end
follow_redirect!
assert_response :success
assert_template "sessions/new"
- assert_select "div.flash.error", "Connection to authentication provider failed"
+ assert_select "div.alert.alert-danger", "Connection to authentication provider failed"
assert_select "span.username", false
end
follow_redirect!
assert_response :success
assert_template "sessions/new"
- assert_select "div.flash.error", "Invalid authentication credentials"
+ assert_select "div.alert.alert-danger", "Invalid authentication credentials"
assert_select "span.username", false
end
assert_response :success
assert_template "sessions/new"
assert_select "span.username", false
- assert_select "div.flash.error", /your account has been suspended/ do
+ assert_select "div.alert.alert-danger", /your account has been suspended/ do
assert_select "a[href='mailto:openstreetmap@example.com']", "support"
end
end
follow_redirect!
assert_response :success
assert_template "sessions/new"
- assert_select "div.flash.error", "Connection to authentication provider failed"
+ assert_select "div.alert.alert-danger", "Connection to authentication provider failed"
assert_select "span.username", false
end
follow_redirect!
assert_response :success
assert_template "sessions/new"
- assert_select "div.flash.error", "Invalid authentication credentials"
+ assert_select "div.alert.alert-danger", "Invalid authentication credentials"
assert_select "span.username", false
end
assert_response :success
assert_template "sessions/new"
assert_select "span.username", false
- assert_select "div.flash.error", /your account has been suspended/ do
+ assert_select "div.alert.alert-danger", /your account has been suspended/ do
assert_select "a[href='mailto:openstreetmap@example.com']", "support"
end
end
follow_redirect!
assert_response :success
assert_template "sessions/new"
- assert_select "div.flash.error", "Connection to authentication provider failed"
+ assert_select "div.alert.alert-danger", "Connection to authentication provider failed"
assert_select "span.username", false
end
follow_redirect!
assert_response :success
assert_template "sessions/new"
- assert_select "div.flash.error", "Invalid authentication credentials"
+ assert_select "div.alert.alert-danger", "Invalid authentication credentials"
assert_select "span.username", false
end
assert_response :success
assert_template "sessions/new"
assert_select "span.username", false
- assert_select "div.flash.error", /your account has been suspended/ do
+ assert_select "div.alert.alert-danger", /your account has been suspended/ do
assert_select "a[href='mailto:openstreetmap@example.com']", "support"
end
end
follow_redirect!
assert_response :success
assert_template "sessions/new"
- assert_select "div.flash.error", "Connection to authentication provider failed"
+ assert_select "div.alert.alert-danger", "Connection to authentication provider failed"
assert_select "span.username", false
end
follow_redirect!
assert_response :success
assert_template "sessions/new"
- assert_select "div.flash.error", "Invalid authentication credentials"
+ assert_select "div.alert.alert-danger", "Invalid authentication credentials"
assert_select "span.username", false
end
assert_response :success
assert_template "sessions/new"
assert_select "span.username", false
- assert_select "div.flash.error", /your account has been suspended/ do
+ assert_select "div.alert.alert-danger", /your account has been suspended/ do
assert_select "a[href='mailto:openstreetmap@example.com']", "support"
end
end
follow_redirect!
assert_response :success
assert_template "sessions/new"
- assert_select "div.flash.error", "Connection to authentication provider failed"
+ assert_select "div.alert.alert-danger", "Connection to authentication provider failed"
assert_select "span.username", false
end
follow_redirect!
assert_response :success
assert_template "sessions/new"
- assert_select "div.flash.error", "Invalid authentication credentials"
+ assert_select "div.alert.alert-danger", "Invalid authentication credentials"
assert_select "span.username", false
end