Content translation/Developers/GWT-Definitions

Paragraph Alignment
Scenario: Paragraph alignment does not break when inserting simple text, links and templates

Given I am logged into the CX wiki And am in the translation interface with an article already open When I add translation using the +Add Translation option Then the sections in the Source and Translation columns should not be misaligned

Given I am logged into the CX wiki And am in the translation interface with an article already open When I add an image from the Source column into the Target column using +Add Translation (there is no other way of doing it right now) Then the sections in the Source and Translation columns should not be misaligned

Given I am logged into the CX wiki And am in the translation interface with an article already open When I add a section with an Infobox template using +Add Translation Then the sections in the Source and Translation columns should not be misaligned

Given I am logged into the CX wiki And am in the translation interface with an article already open When I add some text in the Translation column using +Add Translation And then clear the entire text using backspace/delete Then the sections in the Source and Translation columns should not be misaligned

Given I am logged into the CX wiki And am in the translation interface with an article already open When I add some text in the Translation column using +Add Translation And then clear some parts of the text using backspace/delete Then the sections in the Source and Translation columns should not be misaligned

Given I am logged into the CX wiki And am in the translation interface with an article already open When I add some text in the Translation column using +Add Translation And then clear the entire text using Select All and backspace/delete Then the sections in the Source and Translation columns should not be misaligned

Given I am logged into the CX wiki And am in the translation interface with an article already open When I add some text in the Translation column using +Add Translation And then clear the entire text using Clear Translation Then the sections in the Source and Translation columns should not be misaligned

Given I am logged into the CX wiki And am in the translation interface with an article already open When I add some text in the Translation column using +Add Translation And then clear the entire text using Clear Translation And restore the original translation using Restore Then the sections in the Source and Translation columns should not be misaligned

Given I am logged into the CX wiki And am in the translation interface with an article already open When I add some text in the Translation column using +Add Translation And then clear the entire text using Clear Translation And then copy the text in the source column using the Use Source Text option Then the sections in the Source and Translation columns should not be misaligned

Given I am logged into the CX wiki And am in the translation interface with an article already open When I add copy a section heading using +Add Translation And then clear the section heading Then the sections in the Source and Translation columns should not be misaligned

Given I am logged into the CX wiki And am in the translation interface with an article already open When I add some text in the Translation column using +Add Translation And then add some more lines in the Translation column that increases the number of visible lines in the column Then the sections in the Source and Translation columns should not be misaligned

Given I am logged into the CX wiki And am in the translation interface with an article already open When I add some text in the Translation column using +Add Translation And then clear some lines in the Translation column that decreases the number of visible lines in the column Then the sections in the Source and Translation columns should not be misaligned

Given I am logged into the CX wiki And am in the translation interface with an article already open When I add some text in the Translation column using +Add Translation And then clear some lines in the Translation column And then add some additional lines in the Translation column Then the sections in the Source and Translation columns should not be misaligned

Given I am logged into the CX wiki And am in the translation interface with an article already open When I add some text in the Translation column using +Add Translation And I select some text in the Translation column and insert a link Then the sections in the Source and Translation columns should not be misaligned

Instruction Card
Scenario: Visibility of the Instruction Card

Given I am logged into the CX wiki When I enter the translation interface Then the Instructions card should be visible in the third column

Given I am logged into the CX wiki And am in the translation interface with an article already open When type text in the translation column Then the Instructions card should be visible in the third column until I stop typing (currently it keeps showing up and vanishing randomly when people are typing)

Given I am logged into the CX wiki And am in the translation interface with an article already open When I click add some text in the translation column And the Machine Translation card is displayed Then the Instructions card should not be visible in the third column

Given I am logged into the CX wiki And am in the translation interface with an article already open When I click add some text in the translation column And I click inside the translation column And the Machine Translation card is displayed Then the Instructions card should not be visible in the third column

Given I am logged into the CX wiki And am in the translation interface with an article already open When I click on a link in the source column or translation column And one or more link cards are displayed Then the Instructions card should not be visible in the third column

Given I am logged into the CX wiki And am in the translation interface with an article already open When I select some text in source column And a Definition card is displayed Then the Instructions card should not be visible in the third column

Given I am logged into the CX wiki And am in the translation interface with an article already open When I select some text in translation column And one or more link cards are displayed Then the Instructions card should not be visible in the third column

Advanced Feature (not in design, but recommended by PM during discussions)

Given I am logged into the CX wiki And am in the translation interface with an article already open And the Instructions card is visible When I perform an action to display a Link, MT or Definition card Then the Instructions card should be minimized somewhere in the third column

Given I am an advanced user and logged into the CX wiki And am in the translation interface with an article already open And the Instructions card is visible When I click on an option (not defined) on the Instructions card Then the Instructions card should be removed until I enable its display again

Link Cards
Scenario: Visibility of the Link Cards

Given I am logged into the CX wiki And am in the translation interface with an article already open When I click on a link in the source column Then any existing cards on the side bar is hidden And one or more link cards should be displayed

Given I am logged into the CX wiki And am in the translation interface with an article already open And I have translated some text with links in both source and target language When I click on a link in the source column Then the corresponding link in the target column is highlighted And two link cards should be displayed for the source and target language

Given I am logged into the CX wiki And am in the translation interface with an article already open And I have translated some text with links in only the source language When I click on a link in the source column Then the corresponding link in the target column is highlighted And one link cards should be displayed for the source language

Publishing
 Scenario: The Publish button creates a page in wikitext and displays the url

Given I am logged into the CX wiki When I enter the translation interface And do not make any edits Then the Publish button should be not be in active state

Given I am logged into the CX wiki When I enter the translation interface And make an edit Then the Publish button should be activated

Given I am in the translation interface And I have made some edits And the Publish button is active When I press the Publish button Then the page should be published And the link to the page under the user’s namespace displayed

Given I am in the translation interface (not implemented; currently the user is taken to the page in the same tab and out of the translation interface) And I Published a page with the Publish button When I click on the link to the published page Then the page is displayed in a new tab