mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
more test fixes
This commit is contained in:
parent
f673c8b231
commit
5abfcabe8b
2 changed files with 10 additions and 14 deletions
|
@ -38,29 +38,23 @@ describe 'signin' do
|
|||
end
|
||||
|
||||
it 'signs in with proper credentials' do
|
||||
visit '/'
|
||||
click_button 'Create My Site'
|
||||
fill_in_valid_signup
|
||||
click_button 'Create Home Page'
|
||||
Capybara.reset_sessions!
|
||||
pass = SecureRandom.hex
|
||||
@site = Fabricate :site, password: pass
|
||||
visit '/'
|
||||
click_link 'Sign In'
|
||||
fill_in 'username', with: @site[:username]
|
||||
fill_in 'password', with: @site[:password]
|
||||
fill_in 'username', with: @site.username
|
||||
fill_in 'password', with: pass
|
||||
click_button 'Sign In'
|
||||
page.must_have_content 'Your Feed'
|
||||
end
|
||||
|
||||
it 'signs in with email' do
|
||||
visit '/'
|
||||
click_button 'Create My Site'
|
||||
fill_in_valid_signup
|
||||
click_button 'Create Home Page'
|
||||
Capybara.reset_sessions!
|
||||
pass = SecureRandom.hex
|
||||
@site = Fabricate :site, password: pass
|
||||
visit '/'
|
||||
click_link 'Sign In'
|
||||
fill_in 'username', with: @site[:email]
|
||||
fill_in 'password', with: @site[:password]
|
||||
fill_in 'username', with: @site.email
|
||||
fill_in 'password', with: pass
|
||||
click_button 'Sign In'
|
||||
page.must_have_content 'Your Feed'
|
||||
end
|
||||
|
|
|
@ -104,6 +104,8 @@ describe 'signup' do
|
|||
page.must_have_content /email.+exists/
|
||||
end
|
||||
|
||||
puts "$$$$$$$$$$$$$$$$$$$$$$ TODO FIX TAGS TESTS"
|
||||
|
||||
=begin
|
||||
it 'succeeds with no tags' do
|
||||
fill_in_valid
|
||||
|
|
Loading…
Add table
Reference in a new issue