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

Refactor some chrome/firefox tests to use pytest #735

Merged
merged 1 commit into from
Dec 9, 2019

Conversation

jsfehler
Copy link
Collaborator

This PR reduces some code duplication by using pytest's parametrize feature, as opposed to placing tests in classes.

Some tests have been rewritten slightly to use pytest, and test_flaskclient.py, test_browser.py test_element_list.py, and test_request_handler.py have been combined into one job on travis-CI.

@andrewsmedina andrewsmedina merged commit 0e27948 into cobrateam:master Dec 9, 2019
@jsfehler jsfehler deleted the cleanup_tests_a_bit branch December 9, 2019 19:25
cheezeygeek added a commit to cheezeygeek/splinter that referenced this pull request Jan 30, 2020
* Fix Firefox headless mode to handle custom firefox_binary option (cobrateam#714)

* Firefox headless mode handles custom firefox_binary option, if it is set

* Use six to handle Python 2/3 compatibility

* How to fill in complex text values (cobrateam#716)

* Fix Firefox driver to respect headless option in subsequent calls (cobrateam#715)

* Firefox headless mode handles custom firefox_binary option, if it is set

* Use six to handle Python 2/3 compatibility

* Fix Firefox driver to respect headless option in subsequent calls

* Fix the test to explicitly launch browser in headless mode

* Browser.get_alert() returns None if no alert exists (cobrateam#717)

* Adds code highlight to the README.rst (cobrateam#720)

* add in docs the possibility to use selenium (cobrateam#722)

* added docs for is_element_visible methods (cobrateam#723)

* Retry WebElement.click if ElementClickInterceptedException or WebDriverException is thrown (cobrateam#725)

* find_by_x methods in WebDriverElement now uses retry mechanism (cobrateam#727)

* Fixed dead external links (cobrateam#731)

* Fixed dead external links

* Fixed more dead in docs/community.rst

* is_not_present/visible returns True immediately after not finding anything (cobrateam#732)

* Update version of Firefox and geckodriver used for tests (cobrateam#737)

* Accept all valid arguments for Remote WebDriver (cobrateam#734)

* Accept all valid arguments for Remote WebDriver

* fixup

* Allow ActionChains when using Remote WebDriver (cobrateam#738)

* add docs about 0.12.0

* setup: bump to 0.12.0

* docs for 0.12.0

* removing circle ci config

* Patch Remote WebDriver to add retry attempts. Add retry to Browser init. (cobrateam#742)

* Refactor forward/back tests to run in isolation (cobrateam#741)

* Add driver attribute to WebDriverElement (cobrateam#740)

* use python 3.8 instead 3.8-3.8-3.8-dev

* Fix WebElement.select and .select_by_text to search only inside the parent element (cobrateam#729)

* Refactor some chrome/firefox tests to use pytest (cobrateam#735)

* find_by with 0 second wait_time only checks once (cobrateam#739)

* Fix FlaskClient redirects (cobrateam#721)

* Fix FlaskClient redirects (cobrateam#515)

Update to the `FlaskClient` driver to make 302/303 redirects behave as
expected (e.g to use GET to request the location in the resposne) and to
ensure that data submit using GET is done so as arguments in the URL
instead of through the `data` argument.

* Add test for Flask redirect of POST response (cobrateam#515)

* WebDriverElement find_by_x methods now take wait_time argument (cobrateam#744)

* add docs about 0.13.0 release

* setup: bump to 0.13.0

* make find_by_value works with btn elements (cobrateam#746)

* make find_by_value works with btn elements

closes cobrateam#274

* fix find_by_value for button elements for zope

* fix find_by_value in chrome

* Fix: Incorrect error thrown when missing chrome/geckodriver (cobrateam#749)

* Fix scenario where incorrect error is thrown when missing chrome/geckodriver

* Fixup

* add a test to ensure that cobrateam#361 is already fixed

* fix test in python3

Co-authored-by: Kasse Korhonen <[email protected]>
Co-authored-by: Mikko Ohtamaa <[email protected]>
Co-authored-by: Nikita Sobolev <[email protected]>
Co-authored-by: George <[email protected]>
Co-authored-by: sukhbeersingh <[email protected]>
Co-authored-by: Joshua Fehler <[email protected]>
Co-authored-by: Johan Niklasson <[email protected]>
Co-authored-by: Andrews Medina <[email protected]>
Co-authored-by: Laurence de Bruxelles <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants