CA20-Cl02.html
open /cms/logout
open /admin/
type id_username admin
type id_password admin
clickAndWait //input[@value='Log in']
clickAndWait link=Content tree
clickAndWait link=Add section
type id_name_en Prueba ca20-cl02
type id_slug prueba-ca20-cl02
select id_status label=Publicado
clickAndWait _continue
click link=Contents
clickAndWait link=documents
clickAndWait link=Add document
type id_name_en Documento CA20-CL02
type id_slug documento-ca20-cl02
select id_status label=Publicado
clickAndWait _continue
click link=Document children
clickAndWait link=videos
clickAndWait link=Add video
type id_name Vídeo
select id_status label=Publicado
type id_file_0 ${TEST_DATA_DIR}/test-video-flv.flv
clickAndWait _continue
clickAndWait link=Documento CA20-CL02
clickAndWait link=View on site
click //div[@id='slideshow']/div/div[2]/div/div/a/span
pause 3000
assertTextPresent Vídeo
click //div[@id='shadowbox_title_close']/a/img
open admin/
clickAndWait link=Content tree
clickAndWait link=Prueba ca20-cl02
click link=Contents
clickAndWait link=documents
clickAndWait link=Documento CA20-CL02
click link=Document children
clickAndWait link=videos
clickAndWait link=Vídeo
select id_status label=Borrador
clickAndWait _continue
clickAndWait link=Documento CA20-CL02
clickAndWait link=View on site
assertTextNotPresent Vídeo
open /admin
clickAndWait link=Browse content
clickAndWait link=Documento CA20-CL02
clickAndWait link=Delete
clickAndWait //input[@value="Yes, I'm sure"]
clickAndWait link=Home
clickAndWait link=Content tree
clickAndWait link=Prueba ca20-cl02
clickAndWait link=Delete
clickAndWait //input[@value="Yes, I'm sure"]
clickAndWait link=Home
clickAndWait link=Log out