We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f40629d commit fdd54d9Copy full SHA for fdd54d9
tests/common/modal_improvement/test_sketch_modal_improvement.py
@@ -37,6 +37,12 @@ def test_create_sketch_modal(self):
37
assert self.get_element(By.ID, 'create-sketch-name') == \
38
self.driver.switch_to.active_element
39
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
+
46
# Check that when the input has focus and you press Enter,
47
# the create sketch action is executed.
48
self.get_element(By.ID, 'create-sketch-name').send_keys(Keys.ENTER)
0 commit comments