open |
/ |
|
storeEval |
( '000000'+Math.floor(Math.random()*1e6) ).replace(/.*(.{6})/,'$1') |
r |
storeEval |
'test_'+storedVars.r |
username |
clickAndWait |
//a[contains(text(),'Sign up')] |
|
type |
username |
${username} |
type |
id_password1 |
password |
type |
id_password2 |
password |
clickAndWait |
//input[@value='Sign Up ยป'] |
|
pause |
2500 |
|
verifyTextPresent |
Successfully logged in as test_${r}. |
|
clickAndWait |
link=fill out your profile |
|
click |
link=Edit profile |
|
waitForElementPresent |
id_name |
|
type |
name |
Regina deTest |
type |
about |
TEST SUBJECT ${r} |
type |
location |
cyberspace |
type |
website |
http://example.com/${r} |
clickAndWait |
//input[@value='update'] |
|
verifyTextPresent |
Regina deTest |
|
verifyTextPresent |
About: TEST SUBJECT ${r} |
|
verifyTextPresent |
exact:Location: cyberspace |
|
verifyText |
//a[contains(@href, "http://example.com/")] |
http://example.com/${r} |
clickAndWait |
link=Projects |
|
clickAndWait |
link=Your Projects |
|
clickAndWait |
link=Create a Project |
|
clickAndWait |
link=All Projects |
|
clickAndWait |
link=Notices |
|
clickAndWait |
link=Projects |
|
clickAndWait |
link=Create a Project |
|
type |
id_slug |
cthulhu_${r} |
type |
id_name |
CthulhuMilkshake${r} |
type |
id_description |
THIS IS A DUMMY PROJECT CREATION TEST PROJECT. |
clickAndWait |
//input[@value='create' and @type='submit'] |
|
verifyTextPresent |
None yet. Start one... |
|
verifyTextPresent |
None yet. Go to the wiki to start a new article. |
|
verifyTextPresent |
More here soon but, in the meantime, here's a link to the task list. |
|
verifyTextPresent |
You are the creator of this project. |
|
verifyElementPresent |
edit-project-toggle |
|
verifyElementPresent |
add-member-toggle |
|
verifyElementPresent |
link=Delete project |
|
click |
link=Delete project |
|
clickAndWait |
//input[@value='Delete Project'] |
|
verifyText |
message_1 |
clear Project CthulhuMilkshake${r} deleted. |
click |
//li[@id='message_1']/a/small |
|
pause |
1500 |
|
verifyAttribute |
message_1@style |
display: none; |
clickAndWait |
link=Account |
|
verifyTextPresent |
E-Mail Addresses |
|
verifyTextPresent |
OpenID Associations |
|
verifyTextPresent |
Change Password |
|
verifyTextPresent |
Language |
|
verifyTextPresent |
Timezone |
|
clickAndWait |
link=Logout |
|
verifyText |
//div[@id='body']/h1 |
Welcome to Pinax |