Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
test: Remove and fix broken tests.
Browse files Browse the repository at this point in the history
The github page that was being used for the test has changed so some
of the tests broke.  Given that this repo is being deprecated, I fixed
the ones that were easy to fix but removed the more complex test.
  • Loading branch information
feanil committed Sep 8, 2023
1 parent f95cc8e commit 4c3ea1c
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 99 deletions.
2 changes: 1 addition & 1 deletion docs/code/round_1/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ class GitHubSearchPage(PageObject):
url = 'http://www.github.com/search'

def is_browser_on_page(self):
return 'code search' in self.browser.title.lower()
return 'search' in self.browser.title.lower()
6 changes: 3 additions & 3 deletions docs/code/round_2/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ class GitHubSearchPage(PageObject):
url = 'http://www.github.com/search'

def is_browser_on_page(self):
return 'code search' in self.browser.title.lower()
return 'search' in self.browser.title.lower()

def enter_search_terms(self, text):
"""
Fill the text into the input field
"""
self.q(css='#search_form input[type="text"]').fill(text)
self.q(css='input[type="text"][aria-label="Search GitHub"]').fill(text)

def search(self):
"""
Click on the Search button and wait for the
results page to be displayed
"""
self.q(css='button.btn').click()
self.q(css='input[type="text"][aria-label="Search GitHub"]').click()
GitHubSearchResultsPage(self.browser).wait_for_page()

def search_for_terms(self, text):
Expand Down
Empty file removed docs/code/round_3/__init__.py
Empty file.
58 changes: 0 additions & 58 deletions docs/code/round_3/pages.py

This file was deleted.

36 changes: 0 additions & 36 deletions docs/code/round_3/test_search.py

This file was deleted.

1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ commands =
python setup.py install
python docs/code/round_1/test_search.py
python docs/code/round_2/test_search.py
python docs/code/round_3/test_search.py
python setup.py build_sphinx
python setup.py check --restructuredtext --strict

0 comments on commit 4c3ea1c

Please sign in to comment.