Thomas Kluyver
7266fd53b0
Remove unused variant of append for now
8 years ago
Thomas Kluyver
a6f604a540
No need for copy
8 years ago
Thomas Kluyver
c23ba2a87f
Docstrings and naming clarity
8 years ago
M Pacer
515f8e22dc
nicer error and use append directly do not iterate over cells
8 years ago
M Pacer
74af79c89d
Improve docstrings & comments; Remove unused code; Relocate script
8 years ago
M Pacer
79603b496f
add quick_notebook utility and give docstring reminder to quit browsers
8 years ago
M Pacer
3c4596bfdf
Take into account lab as a potential endpoint for the driver
8 years ago
M Pacer
d598ef517f
switch fstring to format string
8 years ago
M Pacer
c081af5690
add other markdown string conversion examples for test
8 years ago
M Pacer
7808a89fd3
make append actually append to the end of cell list
8 years ago
M Pacer
0999798949
use new utilities, enable more markdown cells to be added easily
8 years ago
M Pacer
33ca649b0b
add get_rendered_contents helper function
8 years ago
M Pacer
d9dd5d8f1c
add run_all method
8 years ago
M Pacer
5e43458d7d
add append, extend & coerce_to_cell methods
8 years ago
M Pacer
98c09f8fd0
use index method to get cell index in execute_cell
8 years ago
M Pacer
02e0ac38a4
fix add_cell logic, add content param, edit_cell default not render
8 years ago
M Pacer
bf4868dfc4
remove wait_for_selector call inside self.cells property
8 years ago
M Pacer
e9971a97aa
simplify __getitem__ __setitem__ to handle only ints/slices and ints
...
also adds todo to add slice support back to __setitem__
8 years ago
M Pacer
c16dac22ca
use new rich container __*__ methods to make adding & executing nicer
8 years ago
M Pacer
e183fc1627
enrich signature for execute_cell to accept both index and cell directly
8 years ago
M Pacer
3571f1604f
introduce cell __iter__, & __setitem__/__getitem__ for cells & indices
...
__getitem__ also accepts slices
also introduces __len__
8 years ago
M Pacer
5d19785e87
small changes to naming things
8 years ago
M Pacer
ebef7bae4c
create new_notebook classmethod creating/switching to new Notebook page
8 years ago
M Pacer
a112ab6d2a
add select_kernel function for clicking "new" & selecting a kernel
8 years ago
M Pacer
d634f1d0a1
add new_window contextmanager for creating, switching, & waiting on new page
8 years ago
M Pacer
3615d4af7c
enhance wait_for_selector to handle returning single elements
8 years ago
M Pacer
3092800a46
add wait_for_selector to the cells property and to_command_mode
8 years ago
M Pacer
c220215aa8
use wait_for_selector from utils module in test_dashboard_nav
8 years ago
M Pacer
e0ed2c475f
make authenticated browser module scope fixture for permission reasons
8 years ago
M Pacer
bf39dec1ef
move sauce driver logic into isolated function, simplify selenium_driver
8 years ago
M Pacer
86ae162890
add first markdown test and a notebook fixture for new notebook
8 years ago
M Pacer
e2243d6f60
add method that allows you to close the notebook without confirming
8 years ago
M Pacer
2b7f549498
Add add_cell and add_markdown_cell methods
8 years ago
M Pacer
4b6a0a7c44
Add CellTypeError and convert_cell_type and wait_for_stale_cell methods
8 years ago
M Pacer
3d3086e98a
add edit_cell and execute_cell methods; remove focus_cell edit parameter
8 years ago
M Pacer
c9a850492d
add body property
8 years ago
M Pacer
f9dd7c16e7
add basic cell functionality to Notebook class
8 years ago
M Pacer
0994db204a
Introduce Notebook class and give usage example in quick_selenium
8 years ago
M Pacer
7c659f5963
add quick_selenium script for quickly starting up a selenium interactively
8 years ago
M Pacer
9d4cf94d28
add utils module and wait_for_selector
8 years ago
M Pacer
e688774b86
add explicit url_in_tree function to test whether urls are in the tree
8 years ago
M Pacer
f17e775a2c
add jupyter_server_info to authenticated browser fixture
8 years ago
M Pacer
47d2be4a5e
move check & wait from only_dir_links to get_list_items; add docstrings
8 years ago
M Pacer
c8605f189b
use only_dir_links inside test to avoid clicking '..' or non-dir links
8 years ago
M Pacer
f4c90eb5d2
introduce only_dir_links function to extract tree links from listing
8 years ago
M Pacer
1f549fcce4
change dashboard test to click on links, go back, and check for contents
8 years ago
M Pacer
965970a17a
creates selenium driver(session-scope) & authenticated_browser fixtures
...
Originally written by @takluyver while pair programming
8 years ago
Thomas Kluyver
aa9c977880
Testing with Selenium & Sauce labs ( #3321 )
...
* Initial selenium test
* Try configuring Travis to run selenium tests on Sauce
* Encryption key needs to be for my account, not jupyter
* Install selenium on Travis
* Get more data from server info file
* Set cwd when launching notebook server
Will this help on Travis?
* Use JUPYTER_TEST_BROWSER=chrome to test with Chrome
* Debugging test
* Separate fixtures into conftest.py
* Try with --Cls.a=b option syntax
* Try using sauce labs directly, not through Travis proxy
* Back to using proxy, with http instead of https
Idea from https://stackoverflow.com/questions/48236104/ssl-errors-using-
sauce-labs-in-travis-ci-with-selenium-webriver-tests-django-pr
* Specify browserName in desired_capabilities for Sauce
* Try connecting to Sauce for only some jobs in matrix
* Exclude selenium tests from regular test run
* Remove redundant JS test for dashboard navigation (converted to Selenium)
* Re-enable other tests
* Exclude selenium tests on Appveyor
* Later browser versions are available on Windows
* Try running tests with Firefox 57 instead of 58
* Try running with local Firefox on Travis
* Install geckodriver for Selenium tests
* Untar the right version of geckodriver
* Try stepping back one version of Firefox again
8 years ago