Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit 617fa0e

Browse files
author
Marc-André Rivet
committed
- make sure the new tab has the expected URL
- make sure the cell is selected iif cell_selectable before and after switching tabs
1 parent a5506cb commit 617fa0e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/selenium/test_markdown_link.py

+9
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,13 @@ def test_tmdl001_copy_markdown_to_text(test, cell_selectable):
3434

3535
assert len(test.driver.window_handles) == 1
3636
target.cell(0, "a").get().find_element_by_css_selector("a").click()
37+
assert target.cell(0, "a").is_selected() == cell_selectable
3738
assert len(test.driver.window_handles) == 2
39+
40+
# Make sure the new tab is what's expected
41+
test.driver.switch_to_window(test.driver.window_handles[1])
42+
assert test.driver.current_url.startswith("https://www.google.com")
43+
44+
# Make sure the cell is still selected iff cell_selectable, after switching tabs
45+
test.driver.switch_to_window(test.driver.window_handles[0])
46+
assert target.cell(0, "a").is_selected() == cell_selectable

0 commit comments

Comments
 (0)