Test_SNF_KS_66_ksdemo_SyntaxHelpInWiki
echo - Sign in
open /ksdemo/public/classic/
waitForElementPresent link=Sign in
click link=Sign in
waitForElementPresent username
type username root
waitForElementPresent password
type password gtn
clickAndWait //a[@id='UIPortalLoginFormAction']
open /ksdemo/private/classic/wiki
echo - Add page and Verify Syntax Help panel
waitForElementPresent link=Blank Page
click link=Blank Page
waitForTextPresent //h3[@id='HHelpTips']/span Help Tips
verifyTextPresent //h3[@id='HHelpTips']/span Help Tips
waitForElementPresent //div[@id='UIWikiSidePanelArea']//a[contains(text(),'More')]
click //div[@id='UIWikiSidePanelArea']//a[contains(text(),'More')]
echo [error] Window does not exist. If this looks like a Selenium bug
selectWindow name=notation_help
verifyTitle Wiki
verifyLocation http://localhost:8080/ksdemo/private/classic/wiki?action=help&page=xwikiSLASH2DOT0
close
selectWindow null
verifyLocation http://localhost:8080/ksdemo/private/classic/wiki#AddPage
echo - Click X to close the panel then click Help to open it again
refresh
waitForElementPresent //div[@id='UIWikiSidePanelArea']/div[1]/a
click //div[@id='UIWikiSidePanelArea']/div[1]/a
waitForTextNotPresent //h3[@id='HHelpTips']/span Help Tips
verifyTextNotPresent //h3[@id='HHelpTips']/span Help Tips
waitForElementPresent link=help
click link=help
waitForText //h3[@id='HHelpTips']/span Help Tips
verifyText //h3[@id='HHelpTips']/span Help Tips
echo - Sign out and finish
waitForElementPresent link=Sign out
clickAndWait link=Sign out
waitForTextPresent Sign in
echo - End of test