]> git.openstreetmap.org Git - rails.git/blob - test/system/confirmation_resend_test.rb
Enable dark mode attribution font color
[rails.git] / test / system / confirmation_resend_test.rb
1 require "application_system_test_case"
2
3 class ConfirmationResendSystemTest < ApplicationSystemTestCase
4   def setup
5     @user = build(:user)
6     visit user_new_path
7
8     within ".new_user" do
9       fill_in "Email", :with => @user.email
10       fill_in "Display Name", :with => @user.display_name
11       fill_in "Password", :with => "testtest"
12       fill_in "Confirm Password", :with => "testtest"
13       click_on "Sign Up"
14     end
15   end
16
17   test "flash message should not contain raw html" do
18     visit user_confirm_resend_path(@user)
19
20     assert_content "sent a new confirmation"
21     assert_no_content "<p>"
22   end
23 end