mirror of
https://github.com/neocities/neocities.git
synced 2025-08-06 01:24:56 +02:00
replace recaptch with hcaptcha
This commit is contained in:
parent
6d87c80df1
commit
bc0addb27b
14 changed files with 46 additions and 63 deletions
|
@ -73,13 +73,13 @@ describe '/password_reset' do
|
|||
|
||||
visit "/password_reset_confirm?#{Rack::Utils.build_query username: @site.username, token: @site.reload.password_reset_token}"
|
||||
|
||||
page.current_url.must_match /.+\/settings$/
|
||||
page.current_url.must_match /.+\/settings#password/
|
||||
|
||||
fill_in 'new_password', with: 'n3wp4s$'
|
||||
fill_in 'new_password_confirm', with: 'n3wp4s$'
|
||||
click_button 'Change Password'
|
||||
|
||||
page.current_url.must_match /.+\/settings$/
|
||||
page.current_url.must_match /.+\/settings#password/
|
||||
page.must_have_content 'Successfully changed password'
|
||||
Site.valid_login?(@site.username, 'n3wp4s$').must_equal true
|
||||
page.get_rack_session['id'].must_equal @site.id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue