Skip to content

Commit

Permalink
add tests for media viewer files with upper case file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jasson99 committed Feb 1, 2021
1 parent 3334253 commit ced285f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tests/acceptance/expected-failures-with-oc10-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ Other free text and markdown formatting can be used elsewhere in the document if
- [webUIPreview/imageMediaViewer.feature:81](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPreview/imageMediaViewer.feature#L81)
- [webUIPreview/imageMediaViewer.feature:88](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPreview/imageMediaViewer.feature#L88)

### [Media Viewer does not open upper case file extensions](https://github.com/owncloud/web/issues/4647)
- [webUIPreview/imageMediaViewer.feature:172](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPreview/imageMediaViewer.feature#L172)
- [webUIPreview/imageMediaViewer.feature:173](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPreview/imageMediaViewer.feature#L173)
- [webUIPreview/imageMediaViewer.feature:174](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPreview/imageMediaViewer.feature#L174)

### [Media Viewer preview not visible for files with .ogg and .webm formats](https://github.com/owncloud/web/issues/4667)
- [webUIPreview/imageMediaViewer.feature:136](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPreview/imageMediaViewer.feature#L136)
- [webUIPreview/imageMediaViewer.feature:154](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPreview/imageMediaViewer.feature#L154)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Other free text and markdown formatting can be used elsewhere in the document if
- [webUIPreview/imageMediaViewer.feature:81](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPreview/imageMediaViewer.feature#L81)
- [webUIPreview/imageMediaViewer.feature:88](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPreview/imageMediaViewer.feature#L88)

### [Media Viewer does not open upper case file extensions](https://github.com/owncloud/web/issues/4647)
- [webUIPreview/imageMediaViewer.feature:172](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPreview/imageMediaViewer.feature#L172)
- [webUIPreview/imageMediaViewer.feature:173](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPreview/imageMediaViewer.feature#L173)
- [webUIPreview/imageMediaViewer.feature:174](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPreview/imageMediaViewer.feature#L174)

### [Media Viewer preview not visible for files with .jpeg, .ogg, .webm and .gif formats](https://github.com/owncloud/ocis/issues/1490)
- [webUIPreview/imageMediaViewer.feature:127](https://github.com/owncloud/web/blob/master/tests/acceptance/features/webUIPreview/imageMediaViewer.feature#L127)
Expand Down
14 changes: 14 additions & 0 deletions tests/acceptance/features/webUIPreview/imageMediaViewer.feature
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,17 @@ Scenario Outline: preview of image files with media viewer is possible
Then the preview image of file "sampleWebm.webm" should be displayed in the file list view on the webUI
When the user views the file "sampleWebm.webm" in the media viewer using the webUI
Then the file "sampleWebm.webm" should be displayed in the media viewer webUI


Scenario Outline: preview of image files with extensions in UpperCase with media viewer
Given user "user1" has uploaded file "<image-file>" to "<to-file-name>"
And user "user1" has logged in using the webUI
When the user browses to the files page
Then the preview image of file "<to-file-name>" should be displayed in the file list view on the webUI
When the user views the file "<to-file-name>" in the media viewer by clicking on the file name using the webUI
Then the file "<to-file-name>" should be displayed in the media viewer webUI
Examples:
| image-file | to-file-name |
| testavatar.jpg | testavatar.JPG |
| testavatar.png | testavatar.PNG |
| testavatar.jpeg | testavatar.JPEG |
1 change: 0 additions & 1 deletion tests/acceptance/stepDefinitions/previewContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,5 @@ When(
'the user views the file {string} in the media viewer by clicking on the file name using the webUI',
async function(fileName) {
await filesList.clickOnFileName(fileName)
return mediaViewerPage.waitForMediaViewerLoaded(fileName)
}
)

0 comments on commit ced285f

Please sign in to comment.