Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests-only] [full-ci] Remove acceptance test related to image preview #10670

Merged
merged 5 commits into from
Apr 25, 2024

Conversation

Salipa-Gurung
Copy link
Contributor

@Salipa-Gurung Salipa-Gurung commented Mar 25, 2024

Description

  • Added e2e tests related to previewing files(.jpeg, .mp3, .ogg, .mp4, .webm)
  • Removed acceptance tests related to media preview which are covered in e2e tests.

Related Issue

Motivation and Context

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
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

@Salipa-Gurung Salipa-Gurung self-assigned this Mar 25, 2024
@Salipa-Gurung Salipa-Gurung force-pushed the test/remove-image-preview branch 3 times, most recently from bb0fae6 to 76c6392 Compare March 28, 2024 10:38
@Salipa-Gurung Salipa-Gurung force-pushed the test/remove-image-preview branch 3 times, most recently from 804a589 to d6f82d1 Compare April 3, 2024 04:09
@Salipa-Gurung Salipa-Gurung changed the title [tests-only] [full-ci] Remove test related to image preview [tests-only] [full-ci] Remove acceptance test related to image preview Apr 3, 2024
@Salipa-Gurung Salipa-Gurung force-pushed the test/remove-image-preview branch 7 times, most recently from 3f49b1b to 35e3ebe Compare April 5, 2024 03:58
@Salipa-Gurung Salipa-Gurung marked this pull request as ready for review April 10, 2024 05:10
@Salipa-Gurung Salipa-Gurung force-pushed the test/remove-image-preview branch from 35e3ebe to 6cee957 Compare April 10, 2024 07:15
@saw-jan saw-jan requested a review from ScharfViktor April 10, 2024 09:52
@Salipa-Gurung Salipa-Gurung force-pushed the test/remove-image-preview branch from 6cee957 to 9274fc6 Compare April 11, 2024 09:40
@Salipa-Gurung Salipa-Gurung force-pushed the test/remove-image-preview branch 2 times, most recently from 45543fd to 82c4a42 Compare April 17, 2024 11:46
@Salipa-Gurung Salipa-Gurung force-pushed the test/remove-image-preview branch from 12973c8 to 025e71f Compare April 24, 2024 04:20
Copy link
Member

@saw-jan saw-jan left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Salipa-Gurung Salipa-Gurung force-pushed the test/remove-image-preview branch 2 times, most recently from b3f7a52 to a220d11 Compare April 25, 2024 05:24
@saw-jan saw-jan requested review from grgprarup and SagarGi April 25, 2024 05:29
@saw-jan
Copy link
Member

saw-jan commented Apr 25, 2024

  When "Alice" opens a file "testavatar.png" in the media-viewer using the sidebar panel # tests/e2e/cucumber/steps/ui/resources.ts:798
       locator.click: Error: strict mode violation: locator('xpath=//div[contains(@class, "files-side-bar")]//*[contains(@data-testid, "action-handler")]/span[text()="Preview"]') resolved to 2 elements:
           1) <span data-testid="action-label" class="oc-files-conte…>Preview</span> aka getByRole('button', { name: 'Preview' }).first()
           2) <span data-testid="action-label" class="oc-files-conte…>Preview</span> aka getByRole('button', { name: 'Preview' }).nth(1)

       =========================== logs ===========================
       waiting for locator('xpath=//div[contains(@class, "files-side-bar")]//*[contains(@data-testid, "action-handler")]/span[text()="Preview"]')
       ============================================================
           at Object.previewMediaFromSidebarPanel (/var/www/owncloud/web/tests/e2e/support/objects/app-files/resource/actions.ts:1627:67)
           at async Resource.previewMediaFromSidebarPanel (/var/www/owncloud/web/tests/e2e/support/objects/app-files/resource/index.ts:303:5)
           at async World.<anonymous> (/var/www/owncloud/web/tests/e2e/cucumber/steps/ui/resources.ts:803:5)

@Salipa-Gurung Salipa-Gurung force-pushed the test/remove-image-preview branch from da2ea10 to 69d4e38 Compare April 25, 2024 09:40
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@saw-jan saw-jan merged commit e3acabc into stable-8.0 Apr 25, 2024
3 checks passed
@delete-merged-branch delete-merged-branch bot deleted the test/remove-image-preview branch April 25, 2024 10:12
Salipa-Gurung added a commit that referenced this pull request Apr 26, 2024
#10670)

* remove acceptance test related to media preview

* address review

* add assertion for media navigation action

* change step description

* select the first element found by locator
Salipa-Gurung added a commit that referenced this pull request Apr 26, 2024
#10670)

* remove acceptance test related to media preview

* address review

* add assertion for media navigation action

* change step description

* select the first element found by locator
Salipa-Gurung added a commit that referenced this pull request Apr 26, 2024
#10670)

* remove acceptance test related to media preview

* address review

* add assertion for media navigation action

* change step description

* select the first element found by locator
Salipa-Gurung added a commit that referenced this pull request Apr 26, 2024
#10670)

* remove acceptance test related to media preview

* address review

* add assertion for media navigation action

* change step description

* select the first element found by locator
Salipa-Gurung added a commit that referenced this pull request Apr 29, 2024
#10670)

* remove acceptance test related to media preview

* address review

* add assertion for media navigation action

* change step description

* select the first element found by locator
Salipa-Gurung added a commit that referenced this pull request Apr 30, 2024
#10670)

* remove acceptance test related to media preview

* address review

* add assertion for media navigation action

* change step description

* select the first element found by locator
saw-jan pushed a commit that referenced this pull request May 2, 2024
* [tests-only] [full-ci] Remove acceptance test related to image preview (#10670)

* remove acceptance test related to media preview

* address review

* add assertion for media navigation action

* change step description

* select the first element found by locator

* refactor test step to download from topbar

* update step description

* remove identical step implementation to download resource from media viewer
saw-jan pushed a commit that referenced this pull request May 14, 2024
* [tests-only] [full-ci] Remove acceptance test related to image preview (#10670)

* remove acceptance test related to media preview

* address review

* add assertion for media navigation action

* change step description

* select the first element found by locator

* refactor test step to download from topbar

* update step description

* remove identical step implementation to download resource from media viewer
saw-jan pushed a commit that referenced this pull request May 15, 2024
* [tests-only] [full-ci] Remove acceptance test related to image preview (#10670)

* remove acceptance test related to media preview

* address review

* add assertion for media navigation action

* change step description

* select the first element found by locator

* refactor test step to download from topbar

* update step description

* remove identical step implementation to download resource from media viewer
anon-pradip pushed a commit to anon-pradip/web that referenced this pull request May 15, 2024
* [tests-only] [full-ci] Remove acceptance test related to image preview (owncloud#10670)

* remove acceptance test related to media preview

* address review

* add assertion for media navigation action

* change step description

* select the first element found by locator

* refactor test step to download from topbar

* update step description

* remove identical step implementation to download resource from media viewer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants