Skip to content

Commit 1740456

Browse files
committed
Closing serial monitor window in sketch test.
Window can hide the clone button, which results in test to fail.
1 parent 458f678 commit 1740456

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/common/sketch/test_sketch.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ def test_serial_monitor_disables_fields(self):
8787
)
8888
)
8989

90+
def test_close_serial_monitor(self):
91+
self.get_element(By.ID, 'serial_monitor_toggle').click()
92+
WebDriverWait(self.driver, VERIFY_TIMEOUT).until(
93+
expected_conditions.invisibility_of_element_located(
94+
(By.ID, 'serial_monitor')
95+
)
96+
)
97+
9098
def test_clone_project(self):
9199
"""Tests that clicking the 'Clone Project' link brings us to a new
92100
sketch with the title 'test_project clone'."""

0 commit comments

Comments
 (0)