tariffs4
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/tariffs/list
clickAndWait css=#edit_link_1 > img[alt="Edit"]
waitForValue id=tariff_name Test Tariff
open /billing/tariffs/list
clickAndWait css=#edit_link_5 > img[alt="Edit"]
waitForValue id=tariff_name Test Tariff bad currency
open /billing/tariffs/list
clickAndWait css=#edit_link_4 > img[alt="Edit"]
waitForValue id=tariff_name Test Tariff + 0.1
open /billing/tariffs/list
clickAndWait css=#edit_link_2 > img[alt="Edit"]
waitForValue id=tariff_name Test Tariff for Users
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/users/new
select id=user_usertype label=reseller
clickAndWait link=You have to create a reseller group
type id=name resellergroup1
clickAndWait css=input[type="image"]
open /billing/users/new
type id=user_username resellertest1
type id=password_password resellertest11
select id=user_usertype label=reseller
clickAndWait commit
open /billing/users/new
type id=user_username resellertest2
type id=password_password resellertest21
select id=user_usertype label=reseller
clickAndWait commit
open /billing/tariffs/new
type id=tariff_name admintariff1
clickAndWait commit
open /billing/callc/logout
type login_username resellertest1
type login_psw resellertest11
clickAndWait commit
open /billing/tariffs/new
type id=tariff_name resellertariff1
clickAndWait commit
open /billing/callc/logout
type login_username resellertest2
type login_psw resellertest21
clickAndWait commit
open /billing/tariffs/new
type id=tariff_name resellertariff2
clickAndWait commit
open /billing/tariffs/new
type id=tariff_name admintariff1
clickAndWait commit
verifyText status Tariff was successfully created
open /billing/tariffs/new
type id=tariff_name resellertariff1
clickAndWait commit
verifyTextPresent Tariff was successfully created
open /billing/tariffs/new
type id=tariff_name resellertariff2
clickAndWait commit
waitForTextPresent Tariff was not created
verifyTextPresent Name must be unique
open /billing/callc/logout
type login_username admin
type login_psw admin1
clickAndWait commit
open /billing/tariffs/new
type id=tariff_name resellertariff1
clickAndWait commit
waitForTextPresent Tariff was successfully created
open /billing/tariffs/new
type id=tariff_name resellertariff1
clickAndWait commit
waitForTextPresent Tariff was not created
verifyTextPresent Name must be unique