Test_SNF_PRL_06_CreateNewAccount
open /portal/public/intranet/
echo -- Create new account--
windowMaximize
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- Go to New Staff--
waitForElementPresent link=Add new Users
clickAndWait link=Add new Users
waitForElementPresent username
type username Test_SNF_PRL_06
type password Test_SNF_PRL_06
type Confirmpassword Test_SNF_PRL_06
type firstName Test_SNF_PRL_06
type lastName Test_SNF_PRL_06
type email Test_SNF_PRL_06@gmail.com
echo -- Choose User Profile tab--
waitForElementPresent //div[text()='User Profile']
click //div[text()='User Profile']
waitForElementPresent user.language
select user.language label=French
waitForElementPresent link=Save
click link=Save
waitForTextPresent You have registered a new account.
verifyTextPresent You have registered a new account.
waitForElementPresent //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
click //div[3]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div/a
waitForElementPresent link=Logout
clickAndWait link=Logout
echo -- Login with new user --
open /portal/public/intranet/
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username Test_SNF_PRL_06
type password Test_SNF_PRL_06
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
waitForTextPresent Test_SNF_PRL_06 Test_SNF_PRL_06
verifyTextPresent Test_SNF_PRL_06 Test_SNF_PRL_06
clickAndWait link=Se Déconnecter
open /portal/public/intranet/
click //div[contains(text(),'Sign in')]
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- Go to users and group management --
waitForElementPresent link=Manage Users and Groups
clickAndWait link=Manage Users and Groups
echo -- Search user --
waitForElementPresent searchTerm
type searchTerm Test_SNF_PRL_06
waitForElementPresent //form[@id='UISearchForm']/div[2]/a
click //form[@id='UISearchForm']/div[2]/a
echo -- Delete new user --
waitForElementPresent //img[@alt='DeleteUser']
click //img[@alt='DeleteUser']
assertConfirmation Are you sure you want to delete Test_SNF_PRL_06 user?
waitForTextPresent No result found.
verifyTextPresent No result found.
waitForElementPresent //div[5]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div
click //div[5]/div/div[2]/div/div/div/div/div/div[3]/div/table/tbody/tr/td/div/div/div/div
waitForTextNotPresent Test_SNF_PRL_06
verifyTextNotPresent Test_SNF_PRL_06
waitForElementPresent link=Logout
clickAndWait link=Logout