./basic.case
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/test/load_delta_sql/sql/global_time_zone_plus_two
waitForElementPresent //body
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
verifyTextPresent Succesfully logged in
open /billing/users/list
open /billing/users/edit/0
select id=user[time_zone] label=(GMT+05:00) Islamabad, Karachi, Tashkent
clickAndWait css=#confirm_without_message > input[name="commit"]
waitForTextPresent User's settings succesfully changed: System Admin
open /billing/users/edit/2
select id=user[time_zone] label=(GMT-10:00) Hawaii
clickAndWait css=#confirm_without_message > input[name="commit"]
open /billing/users/edit/3
select id=user[time_zone] label=(GMT+03:00) Baghdad, Kuwait, Nairobi, Riyadh
clickAndWait css=#confirm_without_message > input[name="commit"]
waitForTextPresent User's settings succesfully changed: Test Reseller
open /billing/users/edit/4
select id=user[time_zone] label=(GMT-05:00) Bogota, Eastern Time (US & Canada), Indiana (East), Lima, Quito
clickAndWait css=#confirm_without_message > input[name="commit"]
waitForTextPresent User's settings succesfully changed: Test Accountant
open /billing/callc/global_settings
waitForElementPresent xpath=(//input[@name='commit'])[8]
clickAndWait xpath=(//input[@name='commit'])[8]
assertConfirmation Are you sure?
waitForElementPresent link=Manual
open /billing/users/edit/0
waitForElementPresent link=Manual
verifySelectedLabel id=user[time_zone] (GMT+03:00) Baghdad, Kuwait, Nairobi, Riyadh
verifyNotSelectedLabel id=user[time_zone] (GMT+05:00) Islamabad, Karachi, Tashkent
open /billing/users/edit/2
waitForElementPresent link=Manual
verifySelectedLabel id=user[time_zone] (GMT+03:00) Baghdad, Kuwait, Nairobi, Riyadh
verifyNotSelectedLabel id=user[time_zone] (GMT-10:00) Hawaii
open /billing/users/edit/3
waitForElementPresent link=Manual
verifySelectedLabel id=user[time_zone] (GMT+03:00) Baghdad, Kuwait, Nairobi, Riyadh
open /billing/users/edit/4
waitForElementPresent link=Manual
verifySelectedLabel id=user[time_zone] (GMT+03:00) Baghdad, Kuwait, Nairobi, Riyadh
verifyNotSelectedLabel id=user[time_zone] (GMT-05:00) Bogota, Eastern Time (US & Canada), Indiana (East), Lima, Quito
open /billing/users/edit/0
waitForElementPresent link=Manual
select id=user[time_zone] label=(GMT+05:00) Islamabad, Karachi, Tashkent
clickAndWait css=#confirm_without_message > input[name="commit"]
waitForTextPresent User's settings succesfully changed: System Admin
open /billing/users/edit/2
waitForElementPresent link=Manual
select id=user[time_zone] label=(GMT-10:00) Hawaii
clickAndWait css=#confirm_without_message > input[name="commit"]
open /billing/users/edit/3
waitForElementPresent link=Manual
select id=user[time_zone] label=(GMT+03:00) Baghdad, Kuwait, Nairobi, Riyadh
clickAndWait css=#confirm_without_message > input[name="commit"]
waitForTextPresent User's settings succesfully changed: Test Reseller
open /billing/users/edit/4
waitForElementPresent link=Manual
select id=user[time_zone] label=(GMT-05:00) Bogota, Eastern Time (US & Canada), Indiana (East), Lima, Quito
clickAndWait css=#confirm_without_message > input[name="commit"]
waitForTextPresent User's settings succesfully changed: Test Accountant
open /billing/callc/global_settings
verifyElementPresent //input[@name='commit' and @value='Change Time zone to System default']
clickAndWait xpath=(//input[@name='commit'])[8]
assertConfirmation Are you sure?
waitForTextPresent Global Time zone change is allowed only once
open /billing/users/edit/0
waitForElementPresent link=Manual
verifySelectedLabel id=user[time_zone] (GMT+05:00) Islamabad, Karachi, Tashkent
open /billing/users/edit/2
waitForElementPresent link=Manual
verifySelectedLabel id=user[time_zone] (GMT-10:00) Hawaii
open /billing/users/edit/3
waitForElementPresent link=Manual
verifySelectedLabel id=user[time_zone] (GMT+03:00) Baghdad, Kuwait, Nairobi, Riyadh
open /billing/users/edit/4
waitForElementPresent link=Manual
verifySelectedLabel id=user[time_zone] (GMT-05:00) Bogota, Eastern Time (US & Canada), Indiana (East), Lima, Quito