Files
danbooru/test/test_helpers/system_test_helper.rb
evazion d29bbbbd71 Fix #4178: add ability to mass undo tag edits.
Adds checkboxes to the /post_versions index allowing you to select and
undo multiple versions at once.
2019-09-27 21:02:32 -05:00

17 lines
407 B
Ruby

module SystemTestHelper
def signup(name, password: "password")
visit new_user_path
fill_in "Name", with: name
fill_in "Password", with: password
fill_in "Password confirmation", with: password
click_button "Sign up"
end
def signin(user)
visit new_session_path
fill_in "Name", with: user.name
fill_in "Password", with: user.password
click_button "Submit"
end
end