From d010bd6d9ec210a5e2c6dffc75455dd742205278 Mon Sep 17 00:00:00 2001 From: Wade Alcorn Date: Mon, 20 Feb 2012 17:46:12 +1000 Subject: [PATCH] Extend wait time between login tests --- test/integration/tc_login.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/integration/tc_login.rb b/test/integration/tc_login.rb index 47b392e4d..be9eff20a 100644 --- a/test/integration/tc_login.rb +++ b/test/integration/tc_login.rb @@ -7,12 +7,14 @@ class TC_login < Test::Unit::TestCase def test_log_in session = Capybara::Session.new(:selenium) session.visit(ATTACK_URL) + sleep 2.0 BeefTest.save_screenshot(session) session.has_content?('BeEF Authentication') session.fill_in 'user', :with => 'beef' session.fill_in 'pass', :with => 'beef' BeefTest.save_screenshot(session) session.click_button('Login') + sleep 2.0 session.has_content?('logout') BeefTest.save_screenshot(session) end