diff --git a/service/test/functional/features/files/5mb.data b/service/test/functional/features/files/5mb.data new file mode 100644 index 000000000..8c28b0e7c Binary files /dev/null and b/service/test/functional/features/files/5mb.data differ diff --git a/service/test/functional/features/files/upload_test_file.txt b/service/test/functional/features/files/upload_test_file.txt deleted file mode 100644 index b7f1f8828..000000000 Binary files a/service/test/functional/features/files/upload_test_file.txt and /dev/null differ diff --git a/service/test/functional/features/steps/attachments.py b/service/test/functional/features/steps/attachments.py index 3cb56bdcc..a319359d4 100644 --- a/service/test/functional/features/steps/attachments.py +++ b/service/test/functional/features/steps/attachments.py @@ -93,10 +93,10 @@ def should_not_show_upload_error_message(context): @when(u'I upload a valid file') def upload_attachment(context): base_dir = "test/functional/features/files/" - fname = "upload_test_file.txt" + fname = "5mb.data" fill_by_css_selector(context, '#fileupload', base_dir + fname) attachment_list_item = wait_until_element_is_visible_by_locator(context, (By.CSS_SELECTOR, '#attachment-list-item li a')) - assert attachment_list_item.text == "%s (3.00 Mb)" % fname + assert attachment_list_item.text == "%s (5.00 Mb)" % fname @when(u'remove the file')