diff --git a/test/integration/tc_login.rb b/test/integration/tc_login.rb index 0d78c57d7..6e814e717 100644 --- a/test/integration/tc_login.rb +++ b/test/integration/tc_login.rb @@ -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')