Added login screen shot capture
This commit is contained in:
@@ -5,7 +5,9 @@ class TC_login < Test::Unit::TestCase
|
||||
def test_log_in
|
||||
session = Capybara::Session.new(:selenium)
|
||||
session.visit('http://localhost:3000/ui/panel')
|
||||
session.driver.browser.save_screenshot("/tmp/login.png")
|
||||
session.has_content?('BeEF Authentication')
|
||||
session.driver.browser.save_screenshot("/tmp/login.png")
|
||||
session.fill_in 'user', :with => 'beef'
|
||||
session.fill_in 'pass', :with => 'beef'
|
||||
session.click_button('Login')
|
||||
|
||||
Reference in New Issue
Block a user