Test_SNF_PRL_06_CreateNewAccount
open /portal/classic/
echo -- Create new account--
windowMaximize
click link=Sign in
waitForElementPresent username root
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']
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[@id="UIAccountPortlet"]//a[text()="OK"]
click //div[@id="UIAccountPortlet"]//a[text()="OK"]
waitForElementPresent link=Sign out
clickAndWait link=Sign out
echo -- Login with new user --
open /portal/classic/
click link=Sign in
waitForElementPresent username
type username Test_SNF_PRL_06
type password Test_SNF_PRL_06
clickAndWait //div[@id='UIPortalLoginFormAction']
waitForTextPresent Test_SNF_PRL_06 Test_SNF_PRL_06
verifyTextPresent Test_SNF_PRL_06 Test_SNF_PRL_06
clickAndWait link=Déconnexion
open /portal/classic/
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']
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']//a[@title="Quick Search"]
click //form[@id='UISearchForm']//a[@title="Quick Search"]
echo -- https://jira.exoplatform.org/browse/EXOGTN-570 --
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?
echo -- Close popup message --
waitForElementPresent //div[contains(@onclick,"action=Close")]
click //div[contains(@onclick,"action=Close")]
waitForTextNotPresent Test_SNF_PRL_06
verifyTextNotPresent Test_SNF_PRL_06
waitForElementPresent link=Sign out
clickAndWait link=Sign out