Skip to content

Commit

Permalink
Merge pull request #3840 from owncloud/test-media-viewer-videos
Browse files Browse the repository at this point in the history
[Tests-Only] Added media viewer tests for video
  • Loading branch information
Talank authored Jul 28, 2020
2 parents 91ec9c5 + 0e274fc commit 3d1b353
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions tests/acceptance/features/webUIPreview/imageMediaViewer.feature
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
Feature: display image in media viewer on the webUI

Scenario: preview of image with media viewer is possible
Background:
Given user "user1" has been created with default attributes
And user "user1" has uploaded file "testavatar.jpg" to "testavatar.jpg"

Scenario: preview of image with media viewer is possible
Given user "user1" has uploaded file "testavatar.jpg" to "testavatar.jpg"
And user "user1" has logged in using the webUI
When the user views the file "testavatar.jpg" in the mediaviewer using the webUI
Then the file "testavatar.jpg" should be displayed in the mediaViewer

Scenario: preview of video with media viewer is possible
Given user "user1" has uploaded file "test_video.mp4" to "test_video.mp4"
And user "user1" has logged in using the webUI
When the user views the file "test_video.mp4" in the mediaviewer using the webUI
Then the file "test_video.mp4" should be displayed in the mediaViewer
Binary file added tests/acceptance/filesForUpload/test_video.mp4
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = {
locateStrategy: 'xpath'
},
mediaImage: {
selector: '//div/img[@alt="%s"]',
selector: '//div[contains(@class,"uk-position-bottom-center")]/div[contains(text(),"%s")]',
locateStrategy: 'xpath'
}
}
Expand Down

0 comments on commit 3d1b353

Please sign in to comment.