From e2de072f9b38df9a8f4af3d7afacfb742a407a2b Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Tue, 1 Apr 2014 12:20:05 +0300 Subject: [PATCH] Fix flaky acceptance test. --- cms/djangoapps/contentstore/features/upload.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cms/djangoapps/contentstore/features/upload.py b/cms/djangoapps/contentstore/features/upload.py index d5f203390451..6330f571a2a8 100644 --- a/cms/djangoapps/contentstore/features/upload.py +++ b/cms/djangoapps/contentstore/features/upload.py @@ -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")