File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,21 @@ def test_add_projectfile_direct(self):
112
112
""" Tests that new file can be added to project using create-new-file
113
113
field """
114
114
self .open_project ()
115
-
115
+ WebDriverWait (self .driver , VERIFY_TIMEOUT ).until (
116
+ expected_conditions .visibility_of_element_located (
117
+ (By .CSS_SELECTOR , "#editor-loading-screen" )
118
+ )
119
+ )
120
+ WebDriverWait (self .driver , VERIFY_TIMEOUT ).until (
121
+ expected_conditions .invisibility_of_element_located (
122
+ (By .CSS_SELECTOR , "#editor-loading-screen" )
123
+ )
124
+ )
125
+ WebDriverWait (self .driver , VERIFY_TIMEOUT ).until (
126
+ expected_conditions .element_to_be_clickable (
127
+ (By .CSS_SELECTOR , "#newfile" )
128
+ )
129
+ )
116
130
add_button = self .get_element (By .ID , 'newfile' )
117
131
add_button .click ()
118
132
WebDriverWait (self .driver , VERIFY_TIMEOUT ).until (
@@ -160,4 +174,4 @@ def test_verify_deletion(self):
160
174
)
161
175
162
176
def test_remove_sketch (self ):
163
- self .delete_project (TEST_PROJECT_NAME )
177
+ self .delete_project (TEST_PROJECT_NAME )
You can’t perform that action at this time.
0 commit comments