-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Convert jstests to selenium: deletecell.js #3465
Convert jstests to selenium: deletecell.js #3465
Conversation
…n changes in PR jupyter#3475. This should be update once that PR is merged
notebook.current_cell.send_keys('dd') | ||
|
||
def test_delete_cells(notebook): | ||
print('testing deleteable cells') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't need this print() - pytest should tell us which test is which when it runs them.
Thanks, it looks like the tests are passing now. Are you satisfied that you've converted the whole of |
Update to use the updated notebook fixture
|
||
@pytest.fixture | ||
def notebook(authenticated_browser): | ||
return Notebook.new_notebook(authenticated_browser) | ||
|
||
def get_cells_contents(nb): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@takluyver Thanks for taking the time to review my PR. I made some changes to address your comments. I have only one more idea that I'm not sure about and I would like your input. I was thinking of moving this function to the Notebook
class since I think it might be needed/repeated in several tests. I'm not sure about other helper functions like delete_cell
, cell_is_deletable
and set_cell_metadata
, do you think they also should be moved to the Notebook
class too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say that the get_cells_contents
and set_cell_metadata
can move to the notebook class, but let's leave delete_cell
and cell_is_deletable
here for now. They can always be moved in another PR if we change our minds. :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made the changes. I believe the PR is ready to be merged if you don't have any more comments :)
…n changes in PR jupyter#3475. This should be update once that PR is merged
Update to use the updated notebook fixture
…eshtawy/notebook into convert-jstest-to-selenium-deletecell
Thanks! |
This PR is related to #3335. It's mean to convert the file
deletecell.js
into a selenium test.