Test_SNF_PRL_06_CreateNewAccount
open /portal/public/classic/
echo -- Create new account--
windowMaximize
click link=Sign in
waitForElementPresent username root
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
echo -- Go to New Staff--
waitForElementPresent link=New Staff
clickAndWait link=New Staff
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=Sign out
clickAndWait link=Sign out
echo -- Login with new user --
open /portal/public/classic/
click link=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=Déconnexion
open /portal/public/classic/
click link=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 --
clickAndWait link=Users and groups management
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?
waitForElementPresent link=Sign out
clickAndWait link=Sign out