Added login screen shot capture

This commit is contained in:
Wade Alcorn
2012-01-13 15:53:25 +10:00
parent 1f3638e7ae
commit 57f0654b27

View File

@@ -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')