Translate description
storeEval alert("This test requires the English and French languages to be activated, English being the default, and French the 2nd language by weight.");
open /node/add/archibald-lomch-description
type id=edit-title-field-und-0-value __This is a test [EN]
type id=edit-lomch-general-description-und-0-value Some description [EN]
type id=edit-lomch-general-identifier-und-0-title Identifier [EN]
type id=edit-lomch-general-identifier-und-0-value http://www.google.com
click id=edit-lomch-resource-language-und-39
click id=edit-lomch-resource-language-und-51
select id=edit-lomch-aggregation-level-und label=2
type id=edit-lomch-keywords-und Keyword 1, Keyword 2
click link=Education
click id=edit-lomch-learning-resource-type-und-group-0-wrapper-text
click id=edit-lomch-learning-resource-type-und-group-0-wrapper-image
type id=edit-lomch-educational-description-und-0-value Educational description [EN]
click link=Relation
select id=edit-lomch-relations-und-0-lomch-relations-kind-und label=Is part of
type id=edit-lomch-relations-und-0-lomch-relations-identifier-und-0-value http://www.example.com
type id=edit-lomch-relations-und-0-lomch-relations-description-und-0-value Relation description [EN]
clickAndWait id=edit-submit
clickAndWait css=.tabs.primary a[href$="/translate"]
clickAndWait link=add
type id=edit-title-field-fr-0-value __This is a test [FR]
type id=edit-lomch-general-description-fr-0-value Some description [FR]
type id=edit-lomch-general-identifier-fr-0-title Identifier [FR]
type id=edit-lomch-general-identifier-fr-1-title Identifier 2 [FR only]
type id=edit-lomch-general-identifier-fr-1-value http://www.example.com
type id=edit-lomch-keywords-fr Mot clé 1, Mot clé 2
click css=.vertical-tab-button:nth-child(4) a
type id=edit-lomch-educational-description-fr-0-value Educational description [FR]
click css=.vertical-tab-button:nth-child(5) a
type id=edit-lomch-relations-fr-0-lomch-relations-description-fr-0-value Relation description [FR]
clickAndWait id=edit-submit
clickAndWait css=.tabs.secondary a[href$="/edit"]
verifyValue id=edit-title-field-fr-0-value __This is a test [FR]
clickAndWait css=.language-link[href$="/en"]
verifyValue id=edit-title-field-en-0-value __This is a test [EN]
verifyValue id=edit-lomch-general-identifier-en-0-title Identifier [EN]
clickAndWait link=JSON
assertText css=pre glob:*__This is a test [EN]*__This is a test [FR]*Some description [EN]*Some description [FR]*Relation description [EN]*Relation description [FR]*
clickAndWait css=.tabs.primary a[href$="/edit"]
clickAndWait id=edit-delete
waitForElementPresent id=edit-cancel
click id=edit-submit