Skip to content

[Tests-Only] Add webUI tests for preview of image files with media viewer#4570

Merged
jasson99 merged 1 commit intoowncloud:masterfrom
SwikritiT:imageMediaViewer
Jan 4, 2021
Merged

[Tests-Only] Add webUI tests for preview of image files with media viewer#4570
jasson99 merged 1 commit intoowncloud:masterfrom
SwikritiT:imageMediaViewer

Conversation

@SwikritiT
Copy link
Copy Markdown
Contributor

@SwikritiT SwikritiT commented Dec 30, 2020

Description

Add webUI tests for preview of jpeg and png file with media viewer

Related Issue

-Fixes #4296

How Has This Been Tested?

🤖

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • ...

@SwikritiT SwikritiT changed the title [Tests-only] Add webUI tests for preview of jpeg and png file with media viewer [Tests-Only] Add webUI tests for preview of jpeg and png file with media viewer Dec 30, 2020
Comment on lines +82 to +92
Scenario: preview of png file with media viewer is possible
Given user "user1" has uploaded file "testavatar.png" to "testavatar.png"
And user "user1" has logged in using the webUI
When the user views the file "testavatar.png" in the media viewer using the webUI
Then the file "testavatar.png" should be displayed in the media viewer webUI

Scenario: preview of jpeg with media viewer is possible
Given user "user1" has uploaded file "testavatar.jpeg" to "testavatar.jpeg"
And user "user1" has logged in using the webUI
When the user views the file "testavatar.jpeg" in the media viewer using the webUI
Then the file "testavatar.jpeg" should be displayed in the media viewer webUI
Copy link
Copy Markdown
Contributor

@haribhandari07 haribhandari07 Dec 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use data table in the first scenario of this file. @Talank please assist her

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also please remove tests/acceptance/filesForUpload/testavatar.jpeg from git

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think including both of these scenarios in a single scenario outline will be nice.

Comment thread tests/acceptance/features/webUIPreview/imageMediaViewer.feature Outdated
Copy link
Copy Markdown
Contributor

@dpakach dpakach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍
make sure to squash your commits before merging

@SwikritiT SwikritiT requested a review from Talank December 30, 2020 09:34
Copy link
Copy Markdown
Contributor

@Talank Talank left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Member

@individual-it individual-it left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
please squash the commits

@SwikritiT SwikritiT changed the title [Tests-Only] Add webUI tests for preview of jpeg and png file with media viewer [Tests-Only] Add webUI tests for preview of image files with media viewer Dec 31, 2020
@SwikritiT
Copy link
Copy Markdown
Contributor Author

@individual-it I think we don't have .jpeg file in filesForUpload folder.So that the CI is failing. I added a jpeg file myself while running the test locally, do I add it to git as well?

@individual-it
Copy link
Copy Markdown
Member

@SwikritiT you can ether:

  1. upload an other file into filesForUpload and commit it to git
  2. rename an existing .jpg file to .jpeg

but actually you should not need to upload files at all. You automatically should have all files in the test-user context from https://github.com/owncloud/testing/tree/master/data/webUISkeleton

@SwikritiT
Copy link
Copy Markdown
Contributor Author

https://github.com/owncloud/testing/tree/master/data/webUISkeleton

seems like there no file with .jpeg even here as well

Copy link
Copy Markdown
Contributor

@swoichha swoichha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SwikritiT SwikritiT force-pushed the imageMediaViewer branch 5 times, most recently from d9e5cef to 1c4e77b Compare January 4, 2021 06:21
Copy link
Copy Markdown
Contributor

@jasson99 jasson99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jasson99 jasson99 merged commit 06b2b48 into owncloud:master Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

preview of jpeg image in the media viewer doesn't work

7 participants