| AddTemplateExpandoTest | ||
| open | /web/guest/home/ | |
| waitForElementPresent | link=Control Panel | |
| clickAtAndWait | link=Control Panel | |
| clickAtAndWait | link=Communities | |
| type | _134_name | Expando Web Content Community |
| clickAtAndWait | //input[@value='Search'] | |
| clickAtAndWait | //tr[@class='portlet-section-body results-row']/td[1]/a | |
| clickAtAndWait | link=Control Panel | |
| clickAtAndWait | link=Web Content | |
| clickAtAndWait | link=Templates | |
| clickAtAndWait | //input[@value='Add Template'] | |
| type | _15_newTemplateId | test_expando |
| type | _15_name | Expando Template Test |
| type | _15_description | This is an expando template test. |
| store | eval(selenium.isChecked('_15_cacheableCheckbox')) | cacheableChecked |
| gotoIf | !${cacheableChecked} | CacheableNotChecked |
| clickAt | _15_cacheableCheckbox | |
| label | CacheableNotChecked | |
| clickAt | //input[@value='Select'] | |
| waitForPopUp | structure | 30000 |
| selectWindow | name=structure | |
| waitForElementPresent | link=TEST_EXPANDO | |
| click | link=TEST_EXPANDO | |
| selectWindow | null | |
| waitForText | _15_structureName | Expando Structure Test |
| assertText | _15_structureName | Expando Structure Test |
| type | _15_xsl | L:\portal\build\portal-web\test\com\liferay\portalweb\portal\dbupgrade\sampledata520\expando\webcontent\dependencies\Expando.htm |
| clickAtAndWait | //input[@value='Save'] | |
| assertTextPresent | Your request processed successfully. | |
| assertText | //tr[@class='portlet-section-body results-row']/td[2] | TEST_EXPANDO |
| assertText | //tr[@class='portlet-section-body results-row']/td[3] | Expando Template Test This is an expando template test. |