Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#358] TEST: improve tests structure #360

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/integration/condition__browser__have_url_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

def test_have_url(session_browser):
GivenPage(session_browser.driver).opened_empty()

session_browser.should(have.url(session_browser.driver.current_url))
session_browser.should(
have.no.url(session_browser.driver.current_url[:-1])
Expand All @@ -36,13 +37,13 @@ def test_have_url(session_browser):

def test_have_url_containing(session_browser):
GivenPage(session_browser.driver).opened_empty()

session_browser.should(have.url_containing('empty.html'))
session_browser.should(have.no.url_containing('start_page.xhtml'))


def test_fails_on_timeout_during_waiting_for_exact_url(session_browser):
browser = session_browser.with_(timeout=0.1)

GivenPage(browser.driver).opened_empty()

with pytest.raises(TimeoutException) as error:
Expand All @@ -53,7 +54,6 @@ def test_fails_on_timeout_during_waiting_for_exact_url(session_browser):

def test_fails_on_timeout_during_waiting_for_part_of_url(session_browser):
browser = session_browser.with_(timeout=0.1)

GivenPage(browser.driver).opened_empty()

with pytest.raises(TimeoutException) as error:
Expand Down
55 changes: 0 additions & 55 deletions tests/integration/hidden_element_test.py

This file was deleted.