Create description (simple)
storeEval alert("This test will CREATE AND PUBLISH content! It MUST NOT be run on a productive system, nor on a system that CONNECTS TO THE PRODUCTION API. The site must have English as the primary language");
open /node/add/archibald-lomch-description
waitForElementPresent id=edit-title-field-und-0-value
type id=edit-title-field-und-0-value __This is a test
type id=edit-lomch-general-description-und-0-value This is a description.

With new lines.
type id=edit-lomch-general-identifier-und-0-value 10.1000/xyz123
select id=edit-lomch-general-identifier-und-0-type label=DOI
type id=edit-lomch-general-identifier-und-0-title This is a nice DOI
click id=edit-lomch-resource-language-und-34
click id=edit-lomch-resource-language-und-39
select id=edit-lomch-aggregation-level-und label=1
type id=edit-lomch-keywords-und Keyword 1, Keyword 2
click //div[@id='edit-lomch-resource-language-und']/div[5]
click link=Lifecycle
type id=edit-lomch-version-und-0-value Version 1.0
click link=Create VCard
selectFrame css=.references-dialog-iframe
waitForElementPresent id=edit-vcard-first-name-und-0-value
type id=edit-vcard-first-name-und-0-value ___Wouter
type id=edit-vcard-last-name-und-0-value Admiraal
type id=edit-vcard-organization-und-0-value educa.ch
click id=edit-submit
selectFrame relative=top
click link=Technical
select id=edit-lomch-technical-format-und label=html
type id=edit-lomch-size-und-0-value 10
type id=edit-lomch-platform-requirements-und-0-value Platform requirements come here.
select id=edit-lomch-duration-und-0-value-3600 label=2
click css=#edit-lomch-duration-und-0-value-3600 > option[value="2"]
select id=edit-lomch-duration-und-0-value-60 label=10
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
click id=edit-lomch-learning-resource-type-und-group-1-wrapper-exercise
click id=edit-lomch-learning-resource-type-und-group-1-wrapper-experiment
click id=edit-lomch-intended-enduserrole-und-learner
click id=edit-lomch-context-und-early-childhood
select id=edit-lomch-typical-learning-time-und label=Unknown
select id=edit-lomch-difficulty-level-und label=Very easy
type id=edit-lomch-typical-age-range-und-0-from 10
type id=edit-lomch-typical-age-range-und-0-to 12
type id=edit-lomch-educational-description-und-0-value This is the educational description.

It is very interesting, believe us.
click link=Rights
select id=edit-lomch-rights-cost-und label=No
addSelection id=edit-lomch-rights-description-und label=GNU General Public License (GPL)
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 This is the relation description.
clickAndWait id=edit-submit
click link=Show General
waitForElementPresent link=Keyword 1
assertText css=div.field-item.even This is a description. With new lines.
assertText css=div.field-name-lomch-general-identifier glob:*DOI*
assertText css=.field-name-lomch-resource-language glob:*German*
assertText css=.field-name-lomch-resource-language glob:*English*
assertText css=div.archibald-lomch-ontology-vocabulary-field-single 1
assertText link=Keyword 1 Keyword 1
assertText link=Keyword 2 Keyword 2
click link=Show Lifecycle
waitForElementPresent css=.field-name-lomch-lifecycle-author
assertText css=.field-name-lomch-version glob:*Version 1.0*
assertText css=.field-name-lomch-lifecycle-author glob:*___Wouter Admiraal (educa.ch)*
click link=Show Technical
waitForElementPresent css=.field-name-lomch-duration
assertText css=.field-name-lomch-technical-format glob:*text/html*
assertText css=.field-name-lomch-size glob:*10 bytes*
assertText css=.field-name-lomch-platform-requirements glob:*Platform requirements come here.*
assertText css=.field-name-lomch-duration glob:*2 hours 10 min*
click link=Show Education
waitForElementPresent css=.field-name-lomch-educational-description
assertText css=div.item-list > ul > li.first Text
assertText css=div.item-list > ul > li.last Image
assertText css=div.field-item.odd > div.archibald-lomch-ontology-vocabulary-field-multiple > div.item-list > ul > li.first Exercise
assertText css=div.field-item.odd > div.archibald-lomch-ontology-vocabulary-field-multiple > div.item-list > ul > li.last Experiment
assertText css=.field-name-lomch-context glob:*Early Childhood*
assertText css=.field-name-lomch-difficulty-level glob:*Very easy*
assertText css=.field-name-lomch-typical-learning-time glob:*Unknown*
assertText css=.field-name-lomch-educational-description glob:*This is the educational description. It is very interesting, believe us.*
click link=Show Rights
waitForElementPresent css=.field-name-lomch-rights-description
assertText css=.field-name-lomch-rights-cost glob:*No*
assertText css=.field-name-lomch-rights-description glob:*GNU General Public License (GPL)*
click link=Show Relation
waitForElementPresent css=.field-name-lomch-relations-identifier
assertText css=.field-name-lomch-relations-kind glob:*Is part of*
assertText css=.field-name-lomch-relations-description glob:*This is the relation description.*
clickAndWait css=.tabs.secondary a[href$="/edit"]
select id=edit-lomch-general-identifier-en-0-type label=URL
type id=edit-lomch-general-identifier-en-0-title Replace with URL
type id=edit-lomch-general-identifier-en-0-value http://www.google.com
clickAndWait id=edit-submit
open /admin/archibald/description/pending
assertText link=__This is a test __This is a test
clickAndWait link=__This is a test
clickAndWait link=List all revisions
verifyXpathCount //form[@id='revisioning-revisions-summary']//table[2]/tbody/tr 1
clickAndWait link=Publish
clickAndWait id=edit-submit
assertText css=div.messages.status > ul > li Revision has been published.
open /admin/archibald/description/pending
assertNotText css=body glob:*__This is a test*
open /admin/archibald/description/published
assertText css=body glob:*__This is a test*
clickAndWait link=__This is a test
clickAndWait css=.tabs.secondary a[href$="/edit"]
type id=edit-lomch-general-description-en-0-value This is a description, updated.

With new lines.
clickAndWait id=edit-submit
open /admin/archibald/description/pending
assertText link=__This is a test __This is a test
open /admin/archibald/description/published
assertText link=__This is a test __This is a test
open /admin/archibald/description/pending
click id=edit-views-bulk-operations-0
clickAndWait id=edit-actionarchibald-assign-to-catalog-action
select id=edit-archibald-catalog label=Partner + national
clickAndWait id=edit-submit
clickAndWait id=edit-submit
waitForElementPresent css=div.messages.status
assertText css=div.messages.status > ul > li Updating existing draft, not creating new revision as this one is still pending.
assertText css=td.views-field.views-field-archibald-publication-catalogs-revision-id Partner + national
open /admin/archibald/description/published
assertText css=td.views-field.views-field-archibald-publication-catalogs Partner
open /admin/archibald/description/pending
click id=edit-views-bulk-operations-0
clickAndWait id=edit-actionarchibald-validate-action
waitForElementPresent css=div.messages
assertText css=div.messages.status > ul > li __This is a test is valid.
click id=edit-views-bulk-operations-0
clickAndWait id=edit-actionarchibald-publish-action
clickAndWait id=edit-submit
waitForElementPresent css=div.messages
assertText css=div.messages.status glob:*Revision has been published.*
open /admin/archibald/description/published
assertText link=__This is a test __This is a test
assertText css=td.views-field.views-field-archibald-publication-catalogs Partner + national
open /admin/archibald/vcard
clickAndWait link=edit
type id=edit-vcard-first-name-und-0-value ___Wouter J. B.
clickAndWait id=edit-submit
open /admin/archibald/description/published
assertText css=div.messages.warning Warning message There are currently published descriptions that may need to be republished. Please visit admin/archibald/description/republish for more information.
open /admin/archibald/description/republish
assertText link=__This is a test __This is a test
click id=edit-views-bulk-operations-0
clickAndWait id=edit-actionarchibald-republish-action
waitForElementPresent css=div.messages
assertText css=div.messages.status > ul > li Performed Republish on 1 item.
assertNotText css=.views-table glob:*__This is a test*
open /admin/archibald/description/published
click id=edit-views-bulk-operations-0
clickAndWait id=edit-actionnode-unpublish-action
clickAndWait id=edit-submit
waitForElementPresent id=edit-actionnode-unpublish-action
assertNotText css=body glob:*__This is a test*
open /admin/archibald/description/pending
assertText link=__This is a test __This is a test
clickAndWait link=__This is a test
clickAndWait css=.tabs.primary a[href$="/edit"]
click id=edit-delete
waitForElementPresent id=edit-cancel
clickAndWait id=edit-submit
open /admin/archibald/vcard
clickAndWait link=delete
clickAndWait id=edit-submit