diff --git a/tests/base.py b/tests/base.py index 2511f43dc..17be49de7 100644 --- a/tests/base.py +++ b/tests/base.py @@ -140,7 +140,6 @@ def test_status_code(self): def test_can_open_page_in_new_tab(self): """should be able to visit url in a new tab""" - self.browser.visit(EXAMPLE_APP) self.browser.windows.current.new_tab(EXAMPLE_APP) self.browser.windows[1].is_current = True self.assertEqual(EXAMPLE_APP, self.browser.url) diff --git a/tests/click_elements.py b/tests/click_elements.py index 41f265cdd..7365c6e05 100644 --- a/tests/click_elements.py +++ b/tests/click_elements.py @@ -1,21 +1,17 @@ # Copyright 2012 splinter authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. -from .fake_webapp import EXAMPLE_APP class ClickElementsTest: def test_click_links(self): self.browser.links.find_by_text("FOO").click() self.assertIn("BAR!", self.browser.html) - self.browser.visit(EXAMPLE_APP) def test_click_element_by_css_selector(self): self.browser.find_by_css('a[href="http://localhost:5000/foo"]').click() self.assertIn("BAR!", self.browser.html) - self.browser.visit(EXAMPLE_APP) def test_click_input_by_css_selector(self): self.browser.find_by_css('input[name="send"]').click() self.assertIn("My name is: Master Splinter", self.browser.html) - self.browser.visit(EXAMPLE_APP) diff --git a/tests/form_elements.py b/tests/form_elements.py index b7986c960..6df3630bb 100644 --- a/tests/form_elements.py +++ b/tests/form_elements.py @@ -7,7 +7,6 @@ import pytest -from .fake_webapp import EXAMPLE_APP from splinter.exceptions import ElementDoesNotExist @@ -109,7 +108,6 @@ def test_submiting_a_form_and_verifying_page_content(self): self.browser.fill("query", "my name") self.browser.find_by_name("send").click() self.assertIn("My name is: Master Splinter", self.browser.html) - self.browser.visit(EXAMPLE_APP) def test_can_choose_a_radio_button(self): "should provide a way to choose a radio button"