diff --git a/features/standard/ContentTranslation.feature b/features/standard/ContentTranslation.feature index 2505c999b..c1ac2a5d7 100644 --- a/features/standard/ContentTranslation.feature +++ b/features/standard/ContentTranslation.feature @@ -1,7 +1,7 @@ -@javascript @translation @IbexaOSS @IbexaHeadless @IbexaExperience @IbexaCommerce -Feature: Content item transation +@javascript @translation +Feature: Content item translation - @APIUser:admin + @APIUser:admin @IbexaOSS Scenario: Publish new translation based on existing translation Given I create "folder" Content items in root in "eng-GB" | name | short_name | short_description | description | @@ -30,7 +30,7 @@ Feature: Content item transation | Short description | EnglishPublished | | Description | EnglishPublished | - @APIUser:admin + @APIUser:admin @IbexaOSS Scenario: Publish new translation without base translation Given I create "folder" Content items in root in "eng-GB" | name | short_name | short_description | description | @@ -51,6 +51,35 @@ Feature: Content item transation And content attributes equal | label | value | fieldTypeIdentifier | | Name | Folder | | - | Short name | This field is empty | ibexa_string | - | Short description | This field is empty | ibexa_richtext | - | Description | This field is empty | ibexa_richtext | + | Short name | This field is empty | ibexa_string | + | Short description | This field is empty | ibexa_richtext | + | Description | This field is empty | ibexa_richtext | + + @APIUser:admin @IbexaHeadless @IbexaExperience @IbexaCommerce + Scenario: Publish new translation based on existing translation + Given I create "folder" Content items in root in "eng-GB" + | name | short_name | short_description | description | + | EnglishPublished | EnglishPublished | EnglishPublished | EnglishPublished | + And I am logged as admin + And I'm on Content view Page for "EnglishPublished" + When I switch to "Translations" tab in Content structure + And I add new translation "French" basing on "English (United Kingdom)" translation + And I set content fields + | label | value | + | Name | FrenchPublished | + | Short name | FrenchPublished | + And I perform the "Publish" action + Then success notification that "Content published." appears + And content attributes equal + | label | value | + | Name | EnglishPublished | + | Short name | EnglishPublished | + | Short description | EnglishPublished | + | Description | EnglishPublished | + And I choose "French" preview in Content View + And content attributes equal + | label | value | fieldTypeIdentifier | + | Name | FrenchPublished | ibexa_string | + | Short name | FrenchPublished | ibexa_string | + | Short description | This field is empty | ibexa_richtext | + | Description | This field is empty | ibexa_richtext |