From dac8b3cb37603b820ddb46df58a986aec38488f6 Mon Sep 17 00:00:00 2001 From: Denis Costa Date: Thu, 25 Aug 2016 16:03:49 -0300 Subject: [Denis/Tulio][#761] Change attachment file size to 5MB --- service/test/functional/features/files/5mb.data | Bin 0 -> 5242880 bytes .../functional/features/files/upload_test_file.txt | Bin 3145728 -> 0 bytes service/test/functional/features/steps/attachments.py | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 service/test/functional/features/files/5mb.data delete mode 100644 service/test/functional/features/files/upload_test_file.txt (limited to 'service/test/functional') diff --git a/service/test/functional/features/files/5mb.data b/service/test/functional/features/files/5mb.data new file mode 100644 index 00000000..8c28b0e7 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 b7f1f882..00000000 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 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') -- cgit v1.2.3