mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
fix acceptance tests
This commit is contained in:
parent
427b16c30c
commit
0c2936b4fe
2 changed files with 7 additions and 7 deletions
|
@ -12,7 +12,7 @@ describe 'index' do
|
|||
it 'goes to signup' do
|
||||
visit '/'
|
||||
click_button 'Create My Website'
|
||||
page.must_have_content('Create a New Home Page')
|
||||
page.must_have_content('Create a New Website')
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -109,9 +109,9 @@ describe 'signin' do
|
|||
it 'fails for invalid login' do
|
||||
visit '/'
|
||||
click_link 'Sign In'
|
||||
page.must_have_content 'Welcome back'
|
||||
page.must_have_content 'Welcome Back'
|
||||
fill_in_valid
|
||||
click_button 'Sign in'
|
||||
click_button 'Sign In'
|
||||
page.must_have_content 'Invalid login'
|
||||
end
|
||||
|
||||
|
@ -121,7 +121,7 @@ describe 'signin' do
|
|||
auth = {username: SecureRandom.hex, password: Faker::Internet.password}
|
||||
fill_in 'username', with: auth[:username]
|
||||
fill_in 'password', with: auth[:password]
|
||||
click_button 'Sign in'
|
||||
click_button 'Sign In'
|
||||
page.must_have_content 'Invalid login'
|
||||
end
|
||||
|
||||
|
@ -137,7 +137,7 @@ describe 'signin' do
|
|||
click_link 'Sign In'
|
||||
fill_in 'username', with: site[:username]
|
||||
fill_in 'password', with: site[:password]
|
||||
click_button 'Sign in'
|
||||
click_button 'Sign In'
|
||||
page.must_have_content 'My Website'
|
||||
end
|
||||
end
|
|
@ -5,8 +5,8 @@
|
|||
|
||||
<div class="header-Outro">
|
||||
<div class="row content single-Col">
|
||||
<h1>Create a New Web Page</h1>
|
||||
<h3 class="subtitle">Your free web page is only a few minutes away!</h3>
|
||||
<h1>Create a New Website</h1>
|
||||
<h3 class="subtitle">Your free web site is only a few minutes away!</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue