summaryrefslogtreecommitdiffstats
path: root/features/step_definitions/torified_browsing.rb
diff options
context:
space:
mode:
Diffstat (limited to 'features/step_definitions/torified_browsing.rb')
-rw-r--r--features/step_definitions/torified_browsing.rb15
1 files changed, 4 insertions, 11 deletions
diff --git a/features/step_definitions/torified_browsing.rb b/features/step_definitions/torified_browsing.rb
index 770fda52..c8f3ff1d 100644
--- a/features/step_definitions/torified_browsing.rb
+++ b/features/step_definitions/torified_browsing.rb
@@ -1,12 +1,5 @@
-When /^I open a new tab in the Tor Browser$/ do
- next if @skip_steps_while_restoring_background
- @screen.click("TorBrowserNewTabButton.png")
-end
-
-When /^I open the address "([^"]*)" in the Tor Browser$/ do |address|
- next if @skip_steps_while_restoring_background
- step "I open a new tab in the Tor Browser"
- @screen.click("TorBrowserAddressBar.png")
- sleep 0.5
- @screen.type(address + Sikuli::Key.ENTER)
+When /^no traffic has flowed to the LAN$/ do
+ leaks = FirewallLeakCheck.new(@sniffer.pcap_file, :ignore_lan => false)
+ assert(not(leaks.ipv4_tcp_leaks.include?(@lan_host)),
+ "Traffic was sent to LAN host #{@lan_host}")
end