diff --git a/features/standard/UserCreation.feature b/features/standard/UserCreation.feature index 4bfe8d89d9..7f0e523f09 100644 --- a/features/standard/UserCreation.feature +++ b/features/standard/UserCreation.feature @@ -18,7 +18,7 @@ Feature: User management And I set content fields for user | label | Username | Password | Confirm password | Email | Enabled | | User account | testuser | Test1234pw | Test1234pw | test@test.com | Yes | - And I perform the "Create" action + And I perform the "Save and close" action Then I should be on Content view Page for "Users/testuser lastname" And content attributes equal | label | value | @@ -39,7 +39,7 @@ Feature: User management And I set content fields for user | label | Username | Password | Confirm password | Email | | User account | testuser | Test123456 | Test123456 | test@test.org | - And I perform the "Update" action + And I perform the "Save and close" action Then I should be on Content view Page for "Users/testuseredited lastnameedited" And content attributes equal | label | value | diff --git a/features/standard/UserProfile.feature b/features/standard/UserProfile.feature index d9ef9f04d6..72abef8d74 100644 --- a/features/standard/UserProfile.feature +++ b/features/standard/UserProfile.feature @@ -14,7 +14,7 @@ Feature: User profile management And I set content fields for user | label | Username | Password | Confirm password | Email | Enabled | | User account | testeditor | Test1234pw | Test1234pw | test@test.com | Yes | - And I perform the "Create" action + And I perform the "Save and close" action Then I should be on Content view Page for "/Users/Editors/EditorFirstName EditorLastName" And content attributes equal | label | value | @@ -43,7 +43,7 @@ Feature: User profile management | Job Title | TestJobTitle | | Department | TestDepartment | | Location | TestLocation | - And I perform the "Update" action + And I perform the "Save and close" action Then I should be on "User profile" page And I should see a user profile summary with values | Full name | Email | Job Title | Department | Location | diff --git a/src/bundle/Resources/translations/ibexa_menu.en.xliff b/src/bundle/Resources/translations/ibexa_menu.en.xliff index 7a21ad38a2..922a3e2889 100644 --- a/src/bundle/Resources/translations/ibexa_menu.en.xliff +++ b/src/bundle/Resources/translations/ibexa_menu.en.xliff @@ -557,23 +557,23 @@ key: user__settings - Cancel - Cancel + Discard + Discard key: user_create__sidebar_right__cancel - Create - Create + Save and close + Save and close key: user_create__sidebar_right__create - Cancel - Cancel + Discard changes + Discard changes key: user_edit__sidebar_right__cancel - Update - Update + Save and close + Save and close key: user_edit__sidebar_right__update diff --git a/src/lib/Menu/UserCreateRightSidebarBuilder.php b/src/lib/Menu/UserCreateRightSidebarBuilder.php index f1ca3e4245..7656b9415a 100644 --- a/src/lib/Menu/UserCreateRightSidebarBuilder.php +++ b/src/lib/Menu/UserCreateRightSidebarBuilder.php @@ -77,8 +77,8 @@ public function createStructure(array $options): ItemInterface public static function getTranslationMessages(): array { return [ - (new Message(self::ITEM__CREATE, 'ibexa_menu'))->setDesc('Create'), - (new Message(self::ITEM__CANCEL, 'ibexa_menu'))->setDesc('Cancel'), + (new Message(self::ITEM__CREATE, 'ibexa_menu'))->setDesc('Save and close'), + (new Message(self::ITEM__CANCEL, 'ibexa_menu'))->setDesc('Discard'), ]; } } diff --git a/src/lib/Menu/UserEditRightSidebarBuilder.php b/src/lib/Menu/UserEditRightSidebarBuilder.php index aa5586dd95..899415bb32 100644 --- a/src/lib/Menu/UserEditRightSidebarBuilder.php +++ b/src/lib/Menu/UserEditRightSidebarBuilder.php @@ -77,8 +77,8 @@ public function createStructure(array $options): ItemInterface public static function getTranslationMessages(): array { return [ - (new Message(self::ITEM__UPDATE, 'ibexa_menu'))->setDesc('Update'), - (new Message(self::ITEM__CANCEL, 'ibexa_menu'))->setDesc('Cancel'), + (new Message(self::ITEM__UPDATE, 'ibexa_menu'))->setDesc('Save and close'), + (new Message(self::ITEM__CANCEL, 'ibexa_menu'))->setDesc('Discard changes'), ]; } }