Fix flaky acceptance test.

This commit is contained in:
Alexander Kryklia
2014-04-01 12:20:05 +03:00
parent b1a0cc9d2c
commit e2de072f9b

View File

@@ -26,8 +26,7 @@ def go_to_uploads(_step):
@step(u'I upload the( test)? file "([^"]*)"$')
def upload_file(_step, is_test_file, file_name):
upload_css = 'a.upload-button'
world.css_click(upload_css)
world.click_link('Upload New File')
if not is_test_file:
_write_test_file(file_name, "test file")