Test_POR_07_006_CheckDisplayLanguageOfPortalAfterChangeLanguageInOrganization
open /portal/public/classic/
echo -- Check display language of portal after change language in Organization portlet--
windowMaximize
click link=Sign in
waitForElementPresent username
type username root
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div
echo -- Go to user and group management--
clickAndWait link=Users and groups management
echo -- Choose an user in list --
click //div[@id='UIListUsersGird']/table/tbody/tr[3]/td[5]/div/img[1]
echo -- Choose User Profile tab--
waitForElementPresent //div[@id='UIUserManagement']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
click //div[@id='UIUserManagement']/div[1]/div/div/div/div/div/div/div/div/div[2]/div/div/div/div
waitForElementPresent user.language
select user.language label=Vietnamese
click link=Save
waitForTextPresent The user profile has been updated.
verifyTextPresent The user profile has been updated.
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
open /portal/public/classic/
echo -- Sign In portal by account which edited above--
click link=Sign in
waitForElementPresent username
type username mary
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div
verifyTextPresent Trang chủ
clickAndWait link=Đăng xuất
open /portal/public/classic/
echo -- Change language of user to English--
click link=Sign in
waitForElementPresent username
type username mary
type password gtn
clickAndWait //div[@id='UIPortalLoginFormAction']/div/div/div/a
waitForElementPresent link=Thay đổi ngôn ngữ
click link=Thay đổi ngôn ngữ
waitForElementPresent link=Tiếng Anh
click link=Tiếng Anh
clickAndWait link=Áp dụng
verifyTextPresent Home
clickAndWait link=Sign out