From 7bdd6fe23352ba5585dabc356e78d5ce02b4a4cc Mon Sep 17 00:00:00 2001 From: Swikriti Tripathi Date: Wed, 30 Dec 2020 12:27:54 +0545 Subject: [PATCH] add tests for preview of image files with media viewer --- .../expected-failures-with-oc10-server.txt | 4 ++-- ...ailures-with-ocis-server-owncloud-storage.txt | 9 ++++++--- .../webUIPreview/imageMediaViewer.feature | 15 +++++++++------ tests/acceptance/filesForUpload/testavatar.jpeg | Bin 0 -> 4606 bytes 4 files changed, 17 insertions(+), 11 deletions(-) create mode 100644 tests/acceptance/filesForUpload/testavatar.jpeg diff --git a/tests/acceptance/expected-failures-with-oc10-server.txt b/tests/acceptance/expected-failures-with-oc10-server.txt index f1361e02bf5..0c977dce7c3 100644 --- a/tests/acceptance/expected-failures-with-oc10-server.txt +++ b/tests/acceptance/expected-failures-with-oc10-server.txt @@ -1,8 +1,8 @@ # this file contains the scenarios from web tests that are currently expected to fail on oC10 # # https://github.com/owncloud/ocisissues/1106 media viewer does not support mp3 files -webUIPreview/imageMediaViewer.feature:78 -webUIPreview/imageMediaViewer.feature:85 +webUIPreview/imageMediaViewer.feature:81 +webUIPreview/imageMediaViewer.feature:88 # # https://github.com/owncloud/web/issues/4564 authentication dialog appears when user is deleted webUILogin/login.feature:62 diff --git a/tests/acceptance/expected-failures-with-ocis-server-owncloud-storage.txt b/tests/acceptance/expected-failures-with-ocis-server-owncloud-storage.txt index c040310b059..5ee60cf6688 100644 --- a/tests/acceptance/expected-failures-with-ocis-server-owncloud-storage.txt +++ b/tests/acceptance/expected-failures-with-ocis-server-owncloud-storage.txt @@ -1,8 +1,8 @@ # this file contains the scenarios from web tests that are currently expected to fail on OCIS with owncloud storage # # https://github.com/owncloud/ocisissues/1106 media viewer does not support mp3 files -webUIPreview/imageMediaViewer.feature:78 -webUIPreview/imageMediaViewer.feature:85 +webUIPreview/imageMediaViewer.feature:81 +webUIPreview/imageMediaViewer.feature:88 # # https://github.com/owncloud/web/issues/4564 authentication dialog appears when user is deleted # https://github.com/owncloud/ocis/issues/1129 login error page loops when logged in user is deleted @@ -185,7 +185,10 @@ webUISharingInternalUsersBlacklisted/shareWithUsers.feature:90 webUILogin/login.feature:52 # # Image-Media-Viewer-Issue -webUIPreview/imageMediaViewer.feature:30 +webUIPreview/imageMediaViewer.feature:33 +# +#https://github.com/owncloud/web/issues/4296 media viewer does not display jpeg file +webUIPreview/imageMediaViewer.feature:15 # # webUI-Private-Links webUIPrivateLinks/accessingPrivateLinks.feature:8 diff --git a/tests/acceptance/features/webUIPreview/imageMediaViewer.feature b/tests/acceptance/features/webUIPreview/imageMediaViewer.feature index a5d35a3dc2d..84f48fb21b4 100644 --- a/tests/acceptance/features/webUIPreview/imageMediaViewer.feature +++ b/tests/acceptance/features/webUIPreview/imageMediaViewer.feature @@ -3,13 +3,16 @@ Feature: display image in media viewer on the webUI Background: Given user "user1" has been created with default attributes - - Scenario: preview of image with media viewer is possible - Given user "user1" has uploaded file "testavatar.jpg" to "testavatar.jpg" +Scenario Outline: preview of image files with media viewer is possible + Given user "user1" has uploaded file "" to "" And user "user1" has logged in using the webUI - When the user views the file "testavatar.jpg" in the media viewer using the webUI - Then the file "testavatar.jpg" should be displayed in the media viewer webUI - + When the user views the file "" in the media viewer using the webUI + Then the file "" should be displayed in the media viewer webUI + Examples: + | image-file | + | testavatar.jpg | + | testavatar.png | + | testavatar.jpeg | Scenario: preview of video with media viewer is possible Given user "user1" has uploaded file "test_video.mp4" to "test_video.mp4" diff --git a/tests/acceptance/filesForUpload/testavatar.jpeg b/tests/acceptance/filesForUpload/testavatar.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..1d140b76801aa6f660877477a40c3095c229ed6f GIT binary patch literal 4606 zcmY*d1yoeq*PmffN`wJHq(Mq>hLRj9rBh-^2|?fy1CN-YQ3>f1hLTc5VqoYT5D^|N zNXL*8QbUIl@}YnAeec|L_uBXDz0N-CoV)9HK7Kw2pjKB_Qw9Km008jf0i5FjApo+= zB$Sj?S1GSjQC_8_{Pj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