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