Amy Skerry
6f73d79376
Add custom expectation to wait for n elements
8 years ago
Amy Skerry
dea186d177
Add wait_for_tag to avoid race condition in display isolation test
...
Attempts to fix flakiness in `test_display_isolation`. We now ensure the iframe has been added to the dom before calling the selector. To make this work, we clean up the iframe cells (and all other cells) at the end of each test. I'm not 100% positive this fixes, since I haven't been able to reproduce the failure. But the hope is that this fixes the intermittent failing seen in https://github.com/jupyter/notebook/pull/4182 .
8 years ago
Andres Sanchez
f27e87541d
Changed function name in utils.py and in test_merge_cells.py
8 years ago
Thomas Kluyver
c9378c71fe
Merge pull request #4146 from askerry/selenium_display_isolation
...
Migrate display isolation test to selenium
8 years ago
Thomas Kluyver
099383e012
Merge pull request #4141 from askerry/selenium_display_image
...
Migrate image display test to selenium
8 years ago
Amy Skerry
a5a6e4ad08
Address review feedback
...
- remove sleep hack cruft
- consolidate/remove unncessary intermediate variables
8 years ago
Amy Skerry
3ccc4ed207
Address review feedback
...
- use %r instead of %s to handle quoting more succintly
- add a finally block to ensure browser state is transitioned from iframe back to default content
8 years ago
Andres Sanchez
fd6ea8e556
Removed unnecessary property attibute created in utils.py and added comments to test_merge_cells.py
8 years ago
Andres Sanchez
1c87821dc1
Modifications to test JS funcion in test_merge_cells.py
8 years ago
Amy Skerry
aa658d3d79
Migrate display isolation test to selenium
...
As per issue #3335 , we want all js tests migrated to selenium. This change migrates and extends the svg isolation test (extended to include slightly more thorough validation of expected isolation behavior).
Test Plan:
py.test -v notebook/tests/selenium/test_display_isolation.py
8 years ago
Amy Skerry
34cd3528d5
Migrate test for merge cells api to selenium
...
Migrates the test for merging cells to use selenium as suggested in issue #3335 .
Test Plan:
py.test -v notebook/tests/selenium/test_merge_cells.py
8 years ago
Amy Skerry
03478bee87
Migrate image display test to selenium
...
Migrates a single js test (testing image display functionality) to selenium as per issue #3335 .
Test Plan:
py.test -v notebook/tests/selenium/test_display_image.py
8 years ago
Arjun Radhakrishna
7eb6e29509
Fix spurious newline in expected result
8 years ago
Arjun Radhakrishna
6fd0a80778
Reformat long string
8 years ago
Arjun Radhakrishna
c5bee3a29d
test and fix: disable math inside code blocks
8 years ago
Thomas Kluyver
c4c49b71ea
Wait for 'New' dropdown button to be clickable for Selenium tests
8 years ago
Thomas Kluyver
5766341360
Merge pull request #3289 from Madhu94/add-save-as-menu-option
...
Add save as menu option
8 years ago
Grant Nestor
2ca3684003
Update selenium tests
8 years ago
Grant Nestor
6670d57e2f
Update tests
8 years ago
Thomas Kluyver
2941158ec7
Merge branch 'master' into test_empty_arrows
8 years ago
arovitn
dcb45b2b34
modified the deletion logic as per the comments and setting the readonly cell to false
8 years ago
arovitn
b22994eb47
renamed the ids, removed the replace_all parameter and changed the name of the testcase as mentioned in the comments
8 years ago
arovitn
33c1dea080
add 'ids' to the form_and_replace form and address other review comments
8 years ago
arovitn
66b257bf3b
removing test_empty_arrows_keys.py and moving the delete_cell test into test_deletecell.py
8 years ago
arovitn
0afa1e5855
Modified to use list comprehension, added '()' for to_command_mode, added assert to check presence of cell and remove 'return True' from remove_cells
8 years ago
arovitn
6fc09088ed
[WIP 838: Writing test for 'Find and replace' in selected cell apply on all cells]
8 years ago
madhu94
eab1e709eb
Add basic selenium test case
8 years ago
arovitn
70ce8fac33
forgot adding .perform() for ActionChain
8 years ago
arovitn
031c90b933
1. Converting 'empty_arrows_keys.js' into selenium based test
...
2. Moved "delete_cell" method to utils.py and modified references to use it from there
3. added a generalized method "trigger_keystrokes" to send keystrokes to browser
8 years ago
Thomas Kluyver
85b60e29b8
Merge pull request #3485 from maartenbreddels/config_manager_no_defaults
...
ConfigManager should not write out default values found in the .d directory
8 years ago
sheshtawy
b25a14222e
Update assert statement to use a list for more descriptive errors and less requests to the browser
8 years ago
sheshtawy
17e46a7cd6
Remove js test file
8 years ago
sheshtawy
1283f27908
Add tests for insertion above/below multiple selected cells
8 years ago
sheshtawy
0acdea70d9
Remove markdown cells assertions since they're not useful anymore
8 years ago
sheshtawy
ebf27aa94c
Remove unnecessary imports
8 years ago
sheshtawy
a46f5b81a1
Add assertions for insert below and above cell commands in command mode and also after editing cells in edit mode
8 years ago
sheshtawy
c4adc5266f
Update utils.py to resolve merge conflict
8 years ago
arovitn
5b0bc68e77
[WIP] [3335] Converting prompt_numbers.js test to selenium
8 years ago
sheshtawy
8daa5f51b4
Add a couple of utility functions to help get a single cell's content and type
8 years ago
sheshtawy
95f02a7437
Initial commit: Add selenium tests for dualmode insert cell
8 years ago
sheshtawy
bdfdd24c7e
Move some utility functions from the test module to the utils.py module
8 years ago
sheshtawy
b097da2867
Delete tests
...
Update to use the updated notebook fixture
8 years ago
sheshtawy
5e57a51055
Remove unnecessary comments
8 years ago
sheshtawy
a47ecd4c07
Move notebook fixture to deletetest file to minimize the dependency on changes in PR #3475 . This should be update once that PR is merged
8 years ago
sheshtawy
2ef45d5577
Add tests to make sure copied cells are deletable
8 years ago
sheshtawy
a0e89b618d
Add tests for deletable cells and non-deleteable cells
8 years ago
hkshesht
835211f039
Initial commit to convert deletecell.js to selenium
8 years ago
Maarten Breddels
0d194cd397
ConfigManager does not write out default values found in the .d directory
8 years ago
Thomas Kluyver
45b8bb9c62
Remove converted JS undelete test
8 years ago
Thomas Kluyver
40e996956a
Finish making Selenium undelete test
8 years ago
Thomas Kluyver
08072107ae
Start writing undelete test in Selenium
8 years ago
Thomas Kluyver
b49ba398c6
Move fixture into conftests.py
8 years ago
Thomas Kluyver
fc8bbb44ca
Delete unused imports
8 years ago
Thomas Kluyver
faa0cab302
Merge pull request #3458 from mpacer/selenium_utils
...
Selenium utils + markdown rendering tests
8 years ago
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
Thomas Kluyver
dc1eeab2f3
Merge pull request #3412 from mpacer/update_selenium_tests
...
Update selenium tests
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