Skip to content

Commit 934c7dd

Browse files
committed
Return to tree window after test using notebook
1 parent 92db6a7 commit 934c7dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

notebook/tests/selenium/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,6 @@ def authenticated_browser(selenium_driver, notebook_server):
118118

119119
@pytest.fixture
120120
def notebook(authenticated_browser):
121-
return Notebook.new_notebook(authenticated_browser)
121+
tree_wh = authenticated_browser.current_window_handle
122+
yield Notebook.new_notebook(authenticated_browser)
123+
authenticated_browser.switch_to.window(tree_wh)

0 commit comments

Comments
 (0)