summaryrefslogtreecommitdiff
path: root/service/test/functional/features
diff options
context:
space:
mode:
authorChristoph Kluenter <ckluente@thoughtworks.com>2016-08-23 17:15:02 +0200
committerChristoph Kluenter <ckluente@thoughtworks.com>2016-08-23 17:15:02 +0200
commit9308560b5114f2c349558f8e984b105c225aefa7 (patch)
tree20ee42590189e82c5412ee3c0ef77dde61121170 /service/test/functional/features
parent94ce2779a01903688b22783fdef3e42e789c1211 (diff)
accept uploads to up to 5MB
Diffstat (limited to 'service/test/functional/features')
-rw-r--r--service/test/functional/features/attachments.feature2
-rw-r--r--service/test/functional/features/files/5mb.daatabin0 -> 5485760 bytes
-rw-r--r--service/test/functional/features/steps/attachments.py4
3 files changed, 3 insertions, 3 deletions
diff --git a/service/test/functional/features/attachments.feature b/service/test/functional/features/attachments.feature
index 7724596d..ff0b99c9 100644
--- a/service/test/functional/features/attachments.feature
+++ b/service/test/functional/features/attachments.feature
@@ -32,7 +32,7 @@ Feature: Attachments
| Pixelated rocks! | You should definitely use it. Cheers, User. |
And for the 'To' field I enter 'pixelated@friends.org'
And I find an attachment icon
- When I try to upload a file bigger than 1MB
+ When I try to upload a file bigger than 5MB
Then I see an upload error message
When I dismiss the error message
Then It should not show the error message anymore
diff --git a/service/test/functional/features/files/5mb.daata b/service/test/functional/features/files/5mb.daata
new file mode 100644
index 00000000..c8908818
--- /dev/null
+++ b/service/test/functional/features/files/5mb.daata
Binary files differ
diff --git a/service/test/functional/features/steps/attachments.py b/service/test/functional/features/steps/attachments.py
index c086dfcc..1805e094 100644
--- a/service/test/functional/features/steps/attachments.py
+++ b/service/test/functional/features/steps/attachments.py
@@ -60,10 +60,10 @@ def find_icon(context):
assert find_element_by_css_selector(context, '#attachment-button .fa.fa-paperclip')
-@when(u'I try to upload a file bigger than 1MB')
+@when(u'I try to upload a file bigger than 5MB')
def upload_big_file(context):
base_dir = "test/functional/features/files/"
- fname = "image_over_1MB.png"
+ fname = "5mb.data"
context.browser.execute_script("$('#fileupload').removeAttr('hidden');")
fill_by_css_selector(context, '#fileupload', base_dir + fname)
wait_until_element_is_visible_by_locator(context, (By.CSS_SELECTOR, '#upload-error-message'))