-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test-only][full-ci] locking file test (#10479)
* lock file test * lint fix
- Loading branch information
1 parent
c60ad66
commit 11ca189
Showing
9 changed files
with
129 additions
and
171 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.
50 changes: 50 additions & 0 deletions
50
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,50 @@ | ||
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 | | ||
| Carol | | ||
And "Alice" logs in | ||
And "Alice" creates the following files into personal space using API | ||
| pathToFile | content | | ||
| test.odt | some content | | ||
And "Alice" creates the following folder in personal space using API | ||
| name | | ||
| folder | | ||
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 Collabora | ||
| 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 | ||
|
||
# checking that sharing/unsharing and creating link of the locked file is possible | ||
And "Alice" creates a public link creates a public link of following resource using the sidebar panel | ||
| resource | password | | ||
| test.odt | %public% | | ||
And "Alice" shares the following resource using the sidebar panel | ||
| resource | recipient | type | role | resourceType | | ||
| test.odt | Carol | user | Can view | file | | ||
# unsharing should remove lock https://github.com/owncloud/ocis/issues/8273 | ||
# And "Alice" removes following sharee | ||
# | resource | recipient | | ||
# | test.odt | Brian | | ||
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