Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions tests/acceptance/features/apiActivity/list.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: List activity
So that I know what is happening with my files/folders

Scenario: file deletion should be listed in the activity list
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
When user "user0" deletes file "textfile0.txt" using the WebDAV API
Then the activity number 1 of user "user0" should match these properties:
| type | /^file_deleted$/ |
Expand All @@ -18,7 +18,7 @@ Feature: List activity
| subject_prepared | /^You deleted <file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/&scrollto=textfile0\.txt\.d\d+&view=trashbin\" id=\"\d+\">textfile0\.txt<\/file>$/ |

Scenario: file restore should be listed in the activity list
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And user "user0" has deleted file "textfile0.txt"
And user "user0" has logged in to a web-style session
When user "user0" restores the file with original path "textfile0.txt" using the trashbin API
Expand All @@ -33,7 +33,7 @@ Feature: List activity
| subject_prepared | /^You restored <file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/&scrollto=textfile0\.txt\" id=\"\d+\">textfile0\.txt<\/file>$/ |

Scenario: folder deletion should be listed in the activity list
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
When user "user0" deletes folder "FOLDER" using the WebDAV API
Then the activity number 1 of user "user0" should match these properties:
| type | /^file_deleted$/ |
Expand All @@ -47,7 +47,7 @@ Feature: List activity
| subject_prepared | /^You deleted <file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/FOLDER\.d\d+&view=trashbin\" id=\"\d+\">FOLDER<\/file>$/ |

Scenario: folder restore should be listed in the activity list
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And user "user0" has deleted folder "FOLDER"
And user "user0" has logged in to a web-style session
When user "user0" restores the folder with original path "FOLDER" using the trashbin API
Expand All @@ -62,7 +62,7 @@ Feature: List activity
| subject_prepared | /^You restored <file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/FOLDER\" id=\"\d+\">FOLDER<\/file>$/ |

Scenario: file inside folder deletion should be listed in the activity list
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
When user "user0" deletes file "PARENT/parent.txt" using the WebDAV API
Then the activity number 1 of user "user0" should match these properties:
| type | /^file_deleted$/ |
Expand All @@ -76,7 +76,7 @@ Feature: List activity
| subject_prepared | /^You deleted <file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/&scrollto=parent\.txt\.d\d+&view=trashbin\" id=\"\d+\">PARENT\/parent.txt<\/file>$/ |

Scenario: file inside folder restore should be listed in the activity list
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And user "user0" has deleted file "PARENT/parent.txt"
And user "user0" has logged in to a web-style session
When user "user0" restores the file with original path "PARENT/parent.txt" using the trashbin API
Expand All @@ -91,7 +91,7 @@ Feature: List activity
| subject_prepared | /^You restored <file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/PARENT&scrollto=parent\.txt\" id=\"\d+\">PARENT\/parent\.txt<\/file>$/ |

Scenario: sub folder deletion should be listed in the activity list
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
When user "user0" deletes folder "PARENT/CHILD" using the WebDAV API
Then the activity number 1 of user "user0" should match these properties:
| type | /^file_deleted$/ |
Expand All @@ -105,7 +105,7 @@ Feature: List activity
| subject_prepared | /^You deleted <file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/CHILD.d\d+&view=trashbin\" id=\"\d+\">PARENT\/CHILD<\/file>$/ |

Scenario: sub folder restore should be listed in the activity list
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And user "user0" has deleted folder "PARENT/CHILD"
And user "user0" has logged in to a web-style session
When user "user0" restores the folder with original path "PARENT/CHILD" using the trashbin API
Expand All @@ -120,7 +120,7 @@ Feature: List activity
| subject_prepared | /^You restored <file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/PARENT\/CHILD" id=\"\d+\">PARENT\/CHILD<\/file>$/ |

Scenario: multiple file deletion should be listed in activity list
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
When user "user0" deletes file "textfile0.txt" using the WebDAV API
And user "user0" deletes file "textfile1.txt" using the WebDAV API
Then the activity number 1 of user "user0" should match these properties:
Expand All @@ -135,7 +135,7 @@ Feature: List activity
| subject_prepared | /^You deleted <collection><file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/&scrollto=textfile1\.txt\.d\d+&view=trashbin\" id=\"\d+\">textfile1\.txt<\/file><file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/&scrollto=textfile0\.txt\.d\d+&view=trashbin\" id=\"\d+\">textfile0\.txt<\/file><\/collection>$/ |

Scenario: multiple folder deletion should be listed in activity list
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
When user "user0" deletes folder "PARENT" using the WebDAV API
And user "user0" deletes folder "FOLDER" using the WebDAV API
Then the activity number 1 of user "user0" should match these properties:
Expand All @@ -150,7 +150,7 @@ Feature: List activity
| subject_prepared | /^You deleted <collection><file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/FOLDER\.d\d+&view=trashbin\" id=\"\d+\">FOLDER<\/file><file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/PARENT\.d\d+&view=trashbin\" id=\"\d+\">PARENT<\/file><\/collection>$/ |

Scenario: multiple file restore should be listed in activity list
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And user "user0" has deleted file "textfile0.txt"
And user "user0" has deleted file "textfile1.txt"
And user "user0" has logged in to a web-style session
Expand All @@ -167,7 +167,7 @@ Feature: List activity
| subject_prepared | /^You restored <collection><file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/&scrollto=textfile1\.txt\" id=\"\d+\">textfile1\.txt<\/file><file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/&scrollto=textfile0\.txt\" id=\"\d+\">textfile0\.txt<\/file><\/collection>$/ |

Scenario: multiple folder restore should be listed in activity list
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And user "user0" has deleted folder "FOLDER"
And user "user0" has deleted folder "PARENT"
And user "user0" has logged in to a web-style session
Expand All @@ -184,7 +184,7 @@ Feature: List activity
| subject_prepared | /^You restored <collection><file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/PARENT\" id=\"\d+\">PARENT<\/file><file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/FOLDER\" id=\"\d+\">FOLDER<\/file><\/collection>$/ |

Scenario: mix of folder and file deletion should be listed in activity list
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
When user "user0" deletes file "textfile0.txt" using the WebDAV API
And user "user0" deletes folder "FOLDER" using the WebDAV API
Then the activity number 1 of user "user0" should match these properties:
Expand All @@ -199,7 +199,7 @@ Feature: List activity
| subject_prepared | /^You deleted <collection><file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/FOLDER\.d\d+&view=trashbin\" id=\"\d+\">FOLDER<\/file><file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/&scrollto=textfile0\.txt\.d\d+&view=trashbin\" id=\"\d+\">textfile0\.txt<\/file><\/collection>$/ |

Scenario: mix of folder and file restore should be listed in activity list
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And user "user0" has deleted file "textfile0.txt"
And user "user0" has deleted folder "FOLDER"
And user "user0" has logged in to a web-style session
Expand All @@ -216,7 +216,7 @@ Feature: List activity
| subject_prepared | /^You restored <collection><file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/FOLDER\" id=\"\d+\">FOLDER<\/file><file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/&scrollto=textfile0\.txt\" id=\"\d+\">textfile0\.txt<\/file><\/collection>$/ |

Scenario: folder share should be listed in the activity list
Given these users have been created with default attributes but not initialized:
Given these users have been created with default attributes and skeleton files but not initialized:
| username |
| user0 |
| user1 |
Expand Down Expand Up @@ -277,7 +277,7 @@ Feature: List activity
| subject_prepared | /^You created <collection><file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/&scrollto=text.txt" id=\"\d+\">text.txt<\/file>/|

Scenario: different files share with different user should be listed in activity list of sharer
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And user "user1" has been created with default attributes and without skeleton files
And user "user2" has been created with default attributes and without skeleton files
When user "user0" shares file "PARENT/parent.txt" with user "user2" using the sharing API
Expand Down Expand Up @@ -306,7 +306,7 @@ Feature: List activity
| subject_prepared | /^You shared <file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/PARENT&scrollto=parent.txt" id=\"\d+\">PARENT\/parent.txt<\/file> with <user display-name=\"User Two\">user2<\/user>$/|

Scenario: different files shared with same user should be listed in activity list of sharer
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And user "user1" has been created with default attributes and without skeleton files
When user "user0" shares file "PARENT/parent.txt" with user "user1" using the sharing API
And user "user0" shares file "textfile0.txt" with user "user1" using the sharing API
Expand Down Expand Up @@ -334,7 +334,7 @@ Feature: List activity
| subject_prepared | /^You shared <file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/PARENT&scrollto=parent.txt" id=\"\d+\">PARENT\/parent.txt<\/file> with <user display-name=\"User One\">user1<\/user>$/|

Scenario: different files shared with different user should be listed in activity list of sharee
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And user "user1" has been created with default attributes and without skeleton files
And user "user2" has been created with default attributes and without skeleton files
When user "user0" shares file "PARENT/parent.txt" with user "user1" using the sharing API
Expand Down Expand Up @@ -363,7 +363,7 @@ Feature: List activity
| subject_prepared | /^<user display-name=\"User Zero\">user0<\/user> shared <file link=\"%base_url%\/(index\.php\/)?apps\/files\/\?dir=\/&scrollto=parent.txt" id=\"\d+\">parent.txt<\/file> with you$/|

Scenario: different files shared with same user should be listed in activity list of sharee
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And user "user1" has been created with default attributes and without skeleton files
When user "user0" shares file "PARENT/parent.txt" with user "user1" using the sharing API
And user "user0" shares file "textfile0.txt" with user "user1" using the sharing API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Feature: Comment files/folders activities

Background:
Given using new DAV path
And user "user0" has been created with default attributes
And user "user0" has been created with default attributes and skeleton files
And user "user0" has logged in using the webUI

Scenario Outline: Commenting on a file/folder should be listed in the activity page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Updated files/folders activities
So that I know what happened in my cloud storage

Background:
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And user "user0" has logged in using the webUI

Scenario: Changing file contents should be shown in activity list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Deleted files/folders activities
So that I know what happened in my cloud storage

Background:
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And user "user0" has logged in using the webUI

@issue-622
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Restored files/folders activities
So that I know what happened in my cloud storage

Background:
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And user "user0" has logged in using the webUI

@issue-622
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: public link sharing file/folders activities
So that I know what happened in my cloud storage

Background:
Given user "user1" has been created with default attributes
Given user "user1" has been created with default attributes and skeleton files
And user "user1" has logged in using the webUI

Scenario: Creating a public link of a folder and file should be listed in the activity list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Feature: federation sharing file/folder activities

Background:
Given using server "REMOTE"
And user "user2" has been created with default attributes
And user "user2" has been created with default attributes and skeleton files
And using server "LOCAL"
And user "user1" has been created with default attributes
And user "user1" has been created with default attributes and skeleton files
And user "user1" has logged in using the webUI

Scenario: Sharing a folder with a remote server should not be listed in the activity list of a sharer if the sharee has not accepted the share
Expand Down
Loading