please robot overlords, plus verbiage change
This commit is contained in:
@@ -13,28 +13,28 @@ feature "broken_auth" do
|
||||
scenario "one\nTutorial: https://github.com/OWASP/railsgoat/wiki/A2-Credential-Enumeration" do
|
||||
wrong_email = normal_user.email + "not"
|
||||
|
||||
visit '/'
|
||||
within('.signup') do
|
||||
fill_in 'email', with: wrong_email
|
||||
fill_in 'password', with: normal_user.clear_password
|
||||
visit "/"
|
||||
within(".signup") do
|
||||
fill_in "email", with: wrong_email
|
||||
fill_in "password", with: normal_user.clear_password
|
||||
end
|
||||
within(".actions") do
|
||||
click_on "Login"
|
||||
end
|
||||
|
||||
expect(find('div#flash_notice').text).not_to include(wrong_email)
|
||||
expect(find("div#flash_notice").text).not_to include(wrong_email)
|
||||
end
|
||||
|
||||
scenario "two\nTutorial: https://github.com/OWASP/railsgoat/wiki/A2-Credential-Enumeration" do
|
||||
visit '/'
|
||||
within('.signup') do
|
||||
fill_in 'email', with: normal_user.email
|
||||
fill_in 'password', with: normal_user.clear_password + 'not'
|
||||
visit "/"
|
||||
within(".signup") do
|
||||
fill_in "email", with: normal_user.email
|
||||
fill_in "password", with: normal_user.clear_password + "not"
|
||||
end
|
||||
within(".actions") do
|
||||
click_on "Login"
|
||||
end
|
||||
|
||||
expect(find('div#flash_notice').text).not_to include('Incorrect Password!')
|
||||
expect(find("div#flash_notice").text).not_to include("Incorrect Password!")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user