Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
f2f073a3
Commit
f2f073a3
authored
6 years ago
by
Daniel Calviño Sánchez
Browse files
Options
Downloads
Patches
Plain Diff
Add acceptance tests for sharing a folder with another user
Signed-off-by:
Daniel Calviño Sánchez
<
danxuliu@gmail.com
>
parent
aa695dca
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/acceptance/features/app-files.feature
+59
-0
59 additions, 0 deletions
tests/acceptance/features/app-files.feature
with
59 additions
and
0 deletions
tests/acceptance/features/app-files.feature
+
59
−
0
View file @
f2f073a3
...
@@ -351,6 +351,65 @@ Feature: app-files
...
@@ -351,6 +351,65 @@ Feature: app-files
And
I see that the
"Sharing"
tab in the details view is eventually loaded
And
I see that the
"Sharing"
tab in the details view is eventually loaded
And
I see that the file is shared with me by
"admin"
And
I see that the file is shared with me by
"admin"
Scenario
:
share an empty folder with another user
Given
I act as John
And
I am logged in as the admin
And
I act as Jane
And
I am logged in
And
I act as John
And
I create a new folder named
"Shared folder"
And
I see that the file list contains a file named
"Shared folder"
When
I share
"Shared folder"
with
"user0"
And
I see that the file is shared with
"user0"
And
I act as Jane
# The Files app is open again to reload the file list
And
I open the Files app
Then
I see that the file list contains a file named
"Shared folder"
And
I open the details view for
"Shared folder"
And
I see that the details view is open
And
I open the
"Sharing"
tab in the details view
And
I see that the
"Sharing"
tab in the details view is eventually loaded
And
I see that the file is shared with me by
"admin"
Scenario
:
sharee sees a folder created by the owner in a shared folder
Given
I act as John
And
I am logged in as the admin
And
I act as Jane
And
I am logged in
And
I act as John
And
I create a new folder named
"Shared folder"
And
I see that the file list contains a file named
"Shared folder"
And
I share
"Shared folder"
with
"user0"
And
I see that the file is shared with
"user0"
And
I enter in the folder named
"Shared folder"
And
I create a new folder named
"Subfolder"
And
I see that the file list contains a file named
"Subfolder"
When
I act as Jane
# The Files app is open again to reload the file list
And
I open the Files app
And
I enter in the folder named
"Shared folder"
Then
I see that the file list contains a file named
"Subfolder"
Scenario
:
owner sees a folder created by the sharee in a shared folder
Given
I act as John
And
I am logged in as the admin
And
I act as Jane
And
I am logged in
And
I act as John
And
I create a new folder named
"Shared folder"
And
I see that the file list contains a file named
"Shared folder"
And
I share
"Shared folder"
with
"user0"
And
I see that the file is shared with
"user0"
And
I act as Jane
# The Files app is open again to reload the file list
And
I open the Files app
And
I enter in the folder named
"Shared folder"
And
I create a new folder named
"Subfolder"
And
I see that the file list contains a file named
"Subfolder"
When
I act as John
And
I enter in the folder named
"Shared folder"
Then
I see that the file list contains a file named
"Subfolder"
Scenario
:
marking a file as favorite causes the file list to be sorted again
Scenario
:
marking a file as favorite causes the file list to be sorted again
Given
I am logged in
Given
I am logged in
And
I create a new folder named
"A name alphabetically lower than welcome.txt"
And
I create a new folder named
"A name alphabetically lower than welcome.txt"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment