-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
356eda5
commit 873c7b7
Showing
9 changed files
with
112 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
tests/acceptance/features/webUIWebdavLockProtection/delete.feature
This file was deleted.
Oops, something went wrong.
58 changes: 0 additions & 58 deletions
58
tests/acceptance/features/webUIWebdavLockProtection/move.feature
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
tests/acceptance/features/webUIWebdavLockProtection/upload.feature
This file was deleted.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
tests/e2e/cucumber/features/smoke/app-provider/lock.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Feature: lock | ||
As a user | ||
I can see that a file is locked if it is opened by a user with edit permissions, | ||
and I am restricted in some actions such as moving deleting renaming a locked file | ||
|
||
|
||
Scenario: file lock indication | ||
Given "Admin" creates following users using API | ||
| id | | ||
| Alice | | ||
| Brian | | ||
And "Alice" logs in | ||
And "Alice" creates the following files into personal space using API | ||
| pathToFile | content | | ||
| test.odt | some content | | ||
And "Alice" shares the following resource using API | ||
| resource | recipient | type | role | | ||
| test.odt | Brian | user | Can edit | | ||
|
||
And "Brian" logs in | ||
And "Brian" opens the "files" app | ||
And "Brian" navigates to the shared with me page | ||
When "Brian" opens the following file in OnlyOffice | ||
| resource | | ||
| test.odt | | ||
Then "Brian" should see the content "some content" in editor "Collabora" | ||
|
||
When "Alice" opens the "files" app | ||
Then for "Alice" file "test.odt" should be locked | ||
# TODO check that not possible to move, rename, delete locked file | ||
# sharing is posible. unsharing should remove lock https://github.com/owncloud/ocis/issues/8273 | ||
And "Brian" logs out | ||
|
||
When "Alice" reloads the page | ||
Then for "Alice" file "test.odt" should not be locked | ||
And "Alice" logs out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters