Skip to content

Commit

Permalink
[Tests-Only]Acceptance test for video playback in public share
Browse files Browse the repository at this point in the history
  • Loading branch information
haribhandari07 committed Aug 4, 2020
1 parent e49958b commit cf568bc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions tests/acceptance/features/webUIPreview/imageMediaViewer.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,19 @@ Feature: display image in media viewer on the webUI
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

Scenario: video playback in public share
Given user "user1" has uploaded file "test_video.mp4" to "simple-empty-folder/test_video.mp4"
And user "user1" has created a public link with following settings
| path | simple-empty-folder |
When the public uses the webUI to access the last public link created by user "user1"
And the public views the file "test_video.mp4" in the mediaviewer using the webUI
Then the file "test_video.mp4" should be displayed in the mediaViewer

Scenario: image preview in public share
Given user "user1" has uploaded file "testavatar.jpg" to "simple-empty-folder/testavatar.jpg"
And user "user1" has created a public link with following settings
| path | simple-empty-folder |
When the public uses the webUI to access the last public link created by user "user1"
And the public views the file "testavatar.jpg" in the mediaviewer using the webUI
Then the file "testavatar.jpg" should be displayed in the mediaViewer
2 changes: 1 addition & 1 deletion tests/acceptance/stepDefinitions/previewContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { When, Then } = require('cucumber')
const offCanvasPage = client.page.FilesPageElement.offCanvasPage()
const filesList = client.page.FilesPageElement.filesList()

When('the user views the file {string} in the mediaviewer using the webUI', async function(
When('the user/public views the file {string} in the mediaviewer using the webUI', async function(
fileName
) {
await filesList.clickOnFileName(fileName)
Expand Down

0 comments on commit cf568bc

Please sign in to comment.