Skip to content
Open
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
43 changes: 36 additions & 7 deletions features/standard/ContentTranslation.feature
Original file line number Diff line number Diff line change
@@ -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 |
Expand Down Expand Up @@ -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 |
Expand All @@ -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 |
Loading