Skip to content

Commit

Permalink
refactor test step to download from topbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Salipa-Gurung committed Apr 30, 2024
1 parent 45abece commit f96aed1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions tests/e2e/cucumber/features/smoke/download.feature
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ Feature: Download
And "Alice" opens the following file in mediaviewer
| resource |
| testavatar.jpg |
And "Alice" downloads the following image from the mediaviewer
| resource |
| testavatar.jpg |
And "Alice" downloads the following resources using the preview topbar
| resource | type |
| testavatar.jpg | file |
And "Alice" closes the file viewer
And "Alice" logs out

Expand All @@ -59,7 +59,7 @@ Feature: Download
And "Brian" opens the following file in mediaviewer
| resource |
| testavatar.jpg |
And "Brian" downloads the following image from the mediaviewer
| resource |
| testavatar.jpg |
And "Brian" downloads the following resources using the preview topbar
| resource | type |
| testavatar.jpg | file |
And "Brian" logs out
1 change: 0 additions & 1 deletion tests/e2e/support/objects/app-files/resource/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { config } from '../../../../config'
import { buildXpathLiteral } from '../../../utils/locator'

const topbarFilenameSelector = '#app-top-bar-resource .oc-resource-name'
// const downloadPreviewButton = '//button[contains(@id, "preview-download")]'
const downloadFileButtonSingleShareView = '.oc-files-actions-download-file-trigger'
const downloadFolderButtonSingleShareView = '.oc-files-actions-download-archive-trigger'
const filesView = '#files-view'
Expand Down

0 comments on commit f96aed1

Please sign in to comment.