project > quickcreate project
assertElementPresent todoyuheadletquickcreate-button
click todoyuheadletquickcreate-button
pause 100
waitForCondition selenium.browserbot.getUserWindow().Ajax.activeRequestCount == 0 10000
assertElementPresent css=li#todoyuheadletquickcreate.headlet ul#todoyuheadletquickcreate-content.content
assertVisible css=a.todoyuheadletquickcreate-item-project-task
assertVisible css=a.todoyuheadletquickcreate-item-project-project
assertVisible css=a.todoyuheadletquickcreate-item-calendar-event
assertVisible css=a.todoyuheadletquickcreate-item-contact-person
assertVisible css=a.todoyuheadletquickcreate-item-contact-company
click css=a.todoyuheadletquickcreate-item-project-project
pause 100
waitForCondition selenium.browserbot.getUserWindow().Ajax.activeRequestCount == 0 10000
assertElementPresent css=html body#todoyu-project.todoyu-project div#quickcreate.dialog
assertElementPresent project-0-field-title
assertElementPresent project-0-field-title
assertElementPresent project-0-field-status
assertElementPresent project-0-field-date-start
assertElementPresent project-0-field-date-end
assertElementPresent project-0-field-date-deadline
assertElementPresent project-0-field-id-company-fulltext
assertElementPresent project-0-field-id-taskpreset
assertElementPresent add-record
assertElementPresent project-0-field-save
assertElementPresent project-0-field-cancel
assertTextNotPresent Please enter a project title
assertTextNotPresent This is a required field
assertTextNotPresent A customer is required for a project
click project-0-field-cancel
pause 100
waitForCondition selenium.browserbot.getUserWindow().Ajax.activeRequestCount == 0 10000
assertElementNotPresent css=html body#todoyu-project.todoyu-project div#quickcreate.dialog
click todoyuheadletquickcreate-button
pause 100
waitForCondition selenium.browserbot.getUserWindow().Ajax.activeRequestCount == 0 10000
click css=a.todoyuheadletquickcreate-item-project-project
pause 100
waitForCondition selenium.browserbot.getUserWindow().Ajax.activeRequestCount == 0 10000
click css=div#quickcreate.dialog div#quickcreate_close.dialog_close
pause 500
waitForCondition selenium.browserbot.getUserWindow().Ajax.activeRequestCount == 0 10000
assertElementNotPresent css=html body#todoyu-project.todoyu-project div#quickcreate.dialog
click todoyuheadletquickcreate-button
pause 100
waitForCondition selenium.browserbot.getUserWindow().Ajax.activeRequestCount == 0 10000
click css=a.todoyuheadletquickcreate-item-project-project
pause 100
waitForCondition selenium.browserbot.getUserWindow().Ajax.activeRequestCount == 0 10000
click project-0-field-save
pause 100
waitForCondition selenium.browserbot.getUserWindow().Ajax.activeRequestCount == 0 10000
assertTextPresent Please enter a project title
assertTextPresent This is a required field
assertTextPresent A customer is required for a project
type project-0-field-title new project for testing
selectFrame css=#project-0-field-description_ifr
focus //html/body[@id="tinymce"]
typeKeys //html/body[@id="tinymce"] And here some wonderfull description...
selectFrame relative=top
pause 100
click project-0-field-save
pause 100
waitForCondition selenium.browserbot.getUserWindow().Ajax.activeRequestCount == 0 10000
assertTextNotPresent Please enter a project title
assertTextPresent This is a required field
assertTextPresent A customer is required for a project
type project-0-field-date-start 01/01/2016
type project-0-field-date-end 02/02/2016
type project-0-field-date-deadline 02/02/2016
selectWindow null
keyPress project-0-field-id-company-fulltext e
keyPress project-0-field-id-company-fulltext i
keyPress project-0-field-id-company-fulltext s
typeKeys project-0-field-id-company-fulltext b
pause 100 100
waitForCondition selenium.browserbot.getUserWindow().Ajax.activeRequestCount == 0 10000
keyDown project-0-field-id-company-fulltext 13
focus --------------------------------------
click project-0-field-save
pause 100
waitForCondition selenium.browserbot.getUserWindow().Ajax.activeRequestCount == 0 10000
assertElementPresent //span[@id="project-15-titlelabel"]
assertTextPresent new project for testing