Skip to content

Commit

Permalink
Add one more test case
Browse files Browse the repository at this point in the history
  • Loading branch information
VicDeo committed Sep 25, 2019
1 parent a376fa1 commit f36c318
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/acceptance/features/webUIFiles/copyPrivateLinks.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ Feature: copy current path as a permanent link
And user "user1" has logged in using the webUI
And the user has browsed to the files page

Scenario: Copy permalink to clipboard
When the user copies the permalink of the current folder using the webUI
Scenario Outline: Copy permalink to clipboard
When the user browses to the folder <folder_name> on the files page
When the user copies the permalink of the current folder using the webUI
Then the clipboard content should match current folder permalink
Examples:
| folder_name |
| "/" |
| "simple-folder" |
8 changes: 8 additions & 0 deletions tests/acceptance/stepDefinitions/filesContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,14 @@ Given('the user has created the following files', function (entryList) {
return client
})

When('the user browses to the folder {string} on the files page',
(folderName) => {
const targetFolder = folderName === '/' ? null : folderName
return client
.page.filesPage()
.navigateAndWaitTillLoaded(targetFolder)
})

When('the user copies the permalink of the current folder using the webUI', function () {
return client.page.filesPage().copyPermalinkFromFilesAppBar()
})
Expand Down

0 comments on commit f36c318

Please sign in to comment.