Test_SNF_KS_73_ksdemo_AdvancedSearchInWiki
echo - Sign in
open /ksdemo/public/classic/
windowMaximize
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 - Create a page
waitForElementPresent link=Blank Page
click link=Blank Page
waitForElementPresent TitleInput
type TitleInput SNF_KS_73 Story of birds
waitForElementPresent Markup
type Markup Eagle is a kind of bird.
waitForElementPresent link=Save
clickAndWait link=Save
waitForTextPresent SNF_KS_73 Story of birds
verifyTextPresent SNF_KS_73 Story of birds
waitForTextPresent Eagle is a kind of bird.
verifyTextPresent Eagle is a kind of bird.
echo - Search using a word of the title of page
open /ksdemo/private/classic/wiki/WikiHome
waitForElementPresent wikiSearchValue
type wikiSearchValue fish
keyUp wikiSearchValue \13
waitForElementPresent text
type text Story
waitForElementPresent link=Search
click link=Search
verifyTextPresent Showing 1 - 1 of 1 for Story
waitForElementPresent //div[@id='UIWikiAdvanceSearchResult']//span[text()='SNF_KS_73 Story of birds']
verifyElementPresent //div[@id='UIWikiAdvanceSearchResult']//span[text()='SNF_KS_73 Story of birds']
echo - Search using a word of the content of page
waitForElementPresent text Eagle
type text Eagle
waitForElementPresent link=Search
click link=Search
verifyTextPresent Showing 1 - 1 of 1 for Eagle
waitForElementPresent //div[@id='UIWikiAdvanceSearchResult']//span[text()='SNF_KS_73 Story of birds']
verifyElementPresent //div[@id='UIWikiAdvanceSearchResult']//span[text()='SNF_KS_73 Story of birds']
waitForTextPresent Eagle is a kind of bird
verifyTextPresent Eagle is a kind of bird
echo - Search using a word that is not part of title+content
waitForElementPresent text fish
type text fish
waitForElementPresent link=Search
click link=Search
verifyTextPresent No matching search result.
echo - Delete test data
open /ksdemo/private/classic/wiki/WikiHome
waitForElementPresent link=SNF_KS_73 Story of birds
click link=SNF_KS_73 Story of birds
waitForElementPresent link=Delete Page
clickAt link=Delete Page
waitForElementPresent //div[@id='UIWikiPageArea']//a[text()='OK']
clickAndWait //div[@id='UIWikiPageArea']//a[text()='OK']
waitForTextNotPresent SNF_KS_73 Story of birds
verifyTextNotPresent SNF_KS_73 Story of birds
echo - Sign out & finish
waitForElementPresent link=Sign out
clickAndWait link=Sign out
waitForTextPresent Sign in
echo - End of test