Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable10] web ui personal settings no skeleton #35527

Merged
merged 1 commit into from
Jun 14, 2019
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ Feature: Control access to edit fullname of user through config file
I want to control the access to users to edit their fullname in settings page
So that users can edit their fullname after getting permission from administrator

Scenario: Admin gives access to users to change their full name
Given user "user1" has been created with default attributes and skeleton files
Background:
Given user "user1" has been created with default attributes and without skeleton files
And user "user1" has logged in using the webUI

Scenario: Admin gives access to users to change their full name
When the administrator updates system config key "allow_user_to_change_display_name" with value "true" and type "boolean" using the occ command
And the user browses to the personal general settings page
And the user changes the full name to "my#very&weird?नेपालि%name" using the webUI
Expand All @@ -15,9 +17,7 @@ Feature: Control access to edit fullname of user through config file
And the attributes of user "user1" returned by the API should include
| displayname | my#very&weird?नेपालि%name |

Scenario: Admin doesnot give access to users to change their full name
Given user "user1" has been created with default attributes and skeleton files
And user "user1" has logged in using the webUI
Scenario: Admin does not give access to users to change their full name
When the administrator updates system config key "allow_user_to_change_display_name" with value "false" and type "boolean" using the occ command
And the user browses to the personal general settings page
Then the user should not be able to change the full name using the webUI
Then the user should not be able to change the full name using the webUI
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Change own email address on the personal settings page
So that I can be reached by the owncloud server

Background:
Given user "user1" has been created with default attributes and skeleton files
Given user "user1" has been created with default attributes and without skeleton files
And user "user1" has logged in using the webUI
And the user has browsed to the personal general settings page

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Change own full name on the personal settings page
So that other users can recognize me by it

Background:
Given user "user1" has been created with default attributes and skeleton files
Given user "user1" has been created with default attributes and without skeleton files
And user "user1" has logged in using the webUI
And the user has browsed to the personal general settings page

Expand All @@ -15,4 +15,4 @@ Feature: Change own full name on the personal settings page
And the user reloads the current page of the webUI
Then "my#very&weird?नेपालि%name" should be shown as the name of the current user on the WebUI
And the attributes of user "user1" returned by the API should include
| displayname | my#very&weird?नेपालि%name |
| displayname | my#very&weird?नेपालि%name |
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Change Login Password
So that I can login with my new password

Background:
Given user "user1" has been created with default attributes and skeleton files
Given user "user1" has been created with default attributes and without skeleton files
And user "user1" has logged in using the webUI
And the user has browsed to the personal general settings page

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: personal general settings
So that I can personalise the User Interface

Background:
Given user "user1" has been created with default attributes and skeleton files
Given user "user1" has been created with default attributes and without skeleton files
And user "user1" has logged in using the webUI
And the user has browsed to the personal general settings page

Expand All @@ -15,20 +15,23 @@ Feature: personal general settings
Then the user should be redirected to a webUI page with the title "Настройки - %productname%"

Scenario: change language and check that file actions menu have been translated
Given the user has created folder "simple-folder"
When the user changes the language to "हिन्दी" using the webUI
And the user browses to the files page
And the user opens the file action menu of folder "simple-folder" on the webUI
Then the user should see "Details" file action translated to "विवरण" on the webUI
And the user should see "Delete" file action translated to "हटाना" on the webUI

Scenario: change language using the occ command and check that file actions menu have been translated
Given the user has created folder "simple-folder"
When the administrator changes the language of user "user1" to "fr" using the occ command
And the user browses to the files page
And the user opens the file action menu of folder "simple-folder" on the webUI
Then the user should see "Details" file action translated to "Détails" on the webUI
And the user should see "Delete" file action translated to "Supprimer" on the webUI

Scenario: change language to invalid language using the occ command and check that the language defaults back to english
Given the user has created folder "simple-folder"
When the administrator changes the language of user "user1" to "not-valid-lan" using the occ command
And the user browses to the files page
And the user opens the file action menu of folder "simple-folder" on the webUI
Expand All @@ -47,17 +50,20 @@ Feature: personal general settings
And group "another-group" should be displayed on the personal general settings page on the webUI

Scenario: User sets profile picture from their existing cloud file
Given the user has deleted any existing profile picture
Given user "user1" has uploaded file "filesForUpload/testavatar.jpg" to "/testimage.jpg"
And the user has deleted any existing profile picture
When the user sets profile picture to "testimage.jpg" from their cloud files using the webUI
Then the preview of the profile picture should be shown on the webUI

Scenario: User deletes the existing profile picture
Given the user has set profile picture to "testimage.jpg" from their cloud files
Given user "user1" has uploaded file "filesForUpload/testavatar.jpg" to "/testimage.jpg"
And the user has set profile picture to "testimage.jpg" from their cloud files
When the user deletes the existing profile picture
Then the preview of the profile picture should not be shown on the webUI

Scenario: User uploads new profile picture
Given the user has deleted any existing profile picture
Given user "user1" has uploaded file "filesForUpload/testavatar.jpg" to "/testimage.jpg"
And the user has deleted any existing profile picture
When the user uploads "testavatar.png" as a new profile picture using the webUI
Then the preview of the profile picture should be shown on the webUI

Expand All @@ -73,4 +79,4 @@ Feature: personal general settings
| new-lorem.txt | should not |
| simple.pdf | should not |
| simple.odt | should not |
| data.tar.gz | should not |
| data.tar.gz | should not |
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: personal security settings
So that I can enable, allow and deny access to and from other storage systems or resources

Background:
Given user "user1" has been created with default attributes and skeleton files
Given user "user1" has been created with default attributes and without skeleton files
And user "user1" has logged in using the webUI
And the user has browsed to the personal security settings page

Expand Down