Skip to content

Commit fdd54d9

Browse files
author
konstantina
committed
Check that sketch name is auto-generated as: Untitled Sketch CURRENT_DATE.
1 parent f40629d commit fdd54d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/common/modal_improvement/test_sketch_modal_improvement.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ def test_create_sketch_modal(self):
3737
assert self.get_element(By.ID, 'create-sketch-name') == \
3838
self.driver.switch_to.active_element
3939

40+
# Check that sketch name is auto-generated as:
41+
# Untitled Sketch CURRENT_DATE.
42+
current_date_text= "Untitled Sketch " + time.strftime("%Y-%m-%d")
43+
assert self.get_element(By.ID,
44+
"create-sketch-name").get_attribute("value") == current_date_text
45+
4046
# Check that when the input has focus and you press Enter,
4147
# the create sketch action is executed.
4248
self.get_element(By.ID, 'create-sketch-name').send_keys(Keys.ENTER)

0 commit comments

Comments
 (0)