From bbf59cd8c140649a0ce3b138d1b6f600aa53d174 Mon Sep 17 00:00:00 2001 From: Francois van der Hoven Date: Thu, 22 Feb 2018 16:56:58 +1000 Subject: [PATCH] Match first of multiple links --- test/integration/tc_login.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/tc_login.rb b/test/integration/tc_login.rb index ca0ccf551..15f1516e2 100644 --- a/test/integration/tc_login.rb +++ b/test/integration/tc_login.rb @@ -76,7 +76,7 @@ class TC_Login < Test::Unit::TestCase attacker.should have_content(VICTIM_DOMAIN) attacker.should have_content('127.0.0.1') - attacker.click_on('127.0.0.1') + attacker.click_on("127.0.0.1", match: :first) sleep 1.0