diff options
Diffstat (limited to 'service')
-rw-r--r-- | service/test/functional/features/files/5mb.data | bin | 0 -> 5242880 bytes | |||
-rw-r--r-- | service/test/functional/features/files/upload_test_file.txt | bin | 3145728 -> 0 bytes | |||
-rw-r--r-- | service/test/functional/features/steps/attachments.py | 4 |
3 files changed, 2 insertions, 2 deletions
diff --git a/service/test/functional/features/files/5mb.data b/service/test/functional/features/files/5mb.data Binary files differnew file mode 100644 index 00000000..8c28b0e7 --- /dev/null +++ b/service/test/functional/features/files/5mb.data diff --git a/service/test/functional/features/files/upload_test_file.txt b/service/test/functional/features/files/upload_test_file.txt Binary files differdeleted file mode 100644 index b7f1f882..00000000 --- a/service/test/functional/features/files/upload_test_file.txt +++ /dev/null diff --git a/service/test/functional/features/steps/attachments.py b/service/test/functional/features/steps/attachments.py index 3cb56bdc..a319359d 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') |