Test_POR_19_070_CreatePageWizardWithInvalidValueForPublicationDateTime
open /portal/public/classic/
echo -- Create page wizard with invalid value for “Publication date time”--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div
echo -- Add new page --
waitForElementPresent link=Add New Page
click link=Add New Page
waitForElementPresent //div[@id='UIPageNodeSelector']/div/div/div[2]/div/div/div/div[1]/a
click //div[@id='UIPageNodeSelector']/div/div/div[2]/div/div/div/div[1]/a
waitForElementPresent pageName
type pageName Test_POR_19_070
type pageDisplayName Test_POR_19_070
waitForElementPresent showPublicationDate
click showPublicationDate
waitForElementPresent startPublicationDate
type startPublicationDate Test
waitForElementPresent endPublicationDate
type endPublicationDate POR
waitForElementPresent //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
click //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[2]/div/div/div
waitForTextPresent The "Start Publication Date" field does not contain a valid value.
verifyTextPresent The "Start Publication Date" field does not contain a valid value.
waitForTextPresent The "End Publication Date" field does not contain a valid value.
verifyTextPresent The "End Publication Date" field does not contain a valid value.
waitForElementPresent link=OK
click link=OK
waitForElementPresent //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[1]/div/div/div/a
click //div[@id='UIPageCreationWizard']/div/div[3]/div/div/div/div[2]/div/table/tbody/tr/td/div[1]/div/div/div/a
waitForElementPresent link=Sign out
clickAndWait link=Sign out