# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8

#Registration Page Test Data

##Variables
from framework.utils.common_utils import by_css, by_xpath

ORGANIZATION_NAME = 'organization_name'
ORGANIZATION_SECTOR = 'organization_sector'
ORGANIZATION_ADDRESS = 'organization_address'
ORGANIZATION_CITY = 'organization_city'
ORGANIZATION_STATE = 'organization_state'
ORGANIZATION_COUNTRY = 'organization_country'
ORGANIZATION_ZIPCODE = 'organization_zipcode'
ORGANIZATION_OFFICE_PHONE = 'organization_office_phone'
ORGANIZATION_WEBSITE = 'organization_website'
TITLE = 'title'
NAME = 'full_name'
EMAIL = 'email'
REGISTRATION_PASSWORD = 'password1'
REGISTRATION_CONFIRM_PASSWORD = 'password2'
WIRE_TRANSFER = 'wire_transfer'
PRO = 'Pro'
PRO_SMS = 'Pro SMS'
PAY_MONTHLY = 'pay_monthly'
ERROR_MESSAGE = 'message'
ADMIN_MOBILE_NUMBER = "mobile_phone"
ORGANIZATION_SECTOR_DROP_DOWN_LIST = by_css("select#id_organization_sector")
ABOUT_DATAWINNERS_BOX = by_xpath('//div[@class="grid_7 right_hand_section alpha omega about_datawinners"')
AGREE_TERMS = "agree-terms"

#Registration Page Data for Successful Registration Page
REGISTRATION_DATA_FOR_SUCCESSFUL_REGISTRATION = {ORGANIZATION_NAME: u"ÑGÓ 001",
                                                 ORGANIZATION_SECTOR: u"PublicHealth",
                                                 ORGANIZATION_ADDRESS: u"Address Line öne",
                                                 ORGANIZATION_CITY: u"Pünë",
                                                 ORGANIZATION_STATE: u"Máharashtra",
                                                 ORGANIZATION_COUNTRY: u"IN",
                                                 ORGANIZATION_ZIPCODE: u"411028",
                                                 ORGANIZATION_OFFICE_PHONE: u"0123456789",
                                                 ORGANIZATION_WEBSITE: u"http://ngo001.com",
                                                 TITLE: u"Mr",
                                                 NAME: u"Mickey Gö",
                                                 EMAIL: u"ngo",
                                                 ADMIN_MOBILE_NUMBER: "23-45-678-567",
                                                 REGISTRATION_PASSWORD: u"ngo001",
                                                 REGISTRATION_CONFIRM_PASSWORD: u"ngo001",
                                                 PAY_MONTHLY: PAY_MONTHLY,
                                                 WIRE_TRANSFER: WIRE_TRANSFER,
                                                 PRO_SMS: PRO_SMS}

REGISTRATION_SUCCESS_MESSAGE = u"You have successfully signed up with DataWinners!!\n\nLast Step: Activate your account\nWe've sent you an activation email. Please check your Spam folder if you haven't received it.\n\nContact support@datawinners.com if you need help."

REGISTRATION_DATA_FOR_SUCCESSFUL_TRIAL_REGISTRATION = {ORGANIZATION_NAME: u"ÑGÓ 001",
                                                       ORGANIZATION_SECTOR: u"PublicHealth",
                                                       ORGANIZATION_CITY: u"Pünë",
                                                       ORGANIZATION_COUNTRY: u"IN",
                                                       NAME: u"Nö Gö",
                                                       EMAIL: u"ngo",
                                                       ADMIN_MOBILE_NUMBER: "23-45-678-567",
                                                       REGISTRATION_PASSWORD: REGISTRATION_PASSWORD,
                                                       REGISTRATION_CONFIRM_PASSWORD: REGISTRATION_PASSWORD}

REGISTRATION_DATA_FOR_UNSUCCESSFUL_TRIAL_REGISTRATION = {ORGANIZATION_NAME: u"ÑGÓ 001",
                                                         ORGANIZATION_SECTOR: u"PublicHealth",
                                                         ORGANIZATION_CITY: u"Pünë",
                                                         ORGANIZATION_COUNTRY: u"IN",
                                                         NAME: u"Nö Gö",
                                                         EMAIL: u"ngo",
                                                         ADMIN_MOBILE_NUMBER: "23-45-678-567",
                                                         REGISTRATION_PASSWORD: REGISTRATION_PASSWORD,
                                                         REGISTRATION_CONFIRM_PASSWORD: REGISTRATION_PASSWORD}

EXISTING_EMAIL_ADDRESS = {ORGANIZATION_NAME: u"NGO 001",
                          ORGANIZATION_SECTOR: u"PublicHealth",
                          ORGANIZATION_ADDRESS: u"Address Line One",
                          ORGANIZATION_CITY: u"Pune",
                          ORGANIZATION_STATE: u"Maharashtra",
                          ORGANIZATION_COUNTRY: u"IN",
                          ORGANIZATION_ZIPCODE: u"411028",
                          ORGANIZATION_OFFICE_PHONE: u"2345adbc234",
                          ORGANIZATION_WEBSITE: u"http://ngo001.com",
                          TITLE: u"Mr",
                          NAME: u"No Go",
                          EMAIL: u"tester150411@gmail.com",
                          ADMIN_MOBILE_NUMBER: "2345234",
                          REGISTRATION_PASSWORD: u"ngo001",
                          REGISTRATION_CONFIRM_PASSWORD: u"ngo001",
                          PRO: PRO,
                          PAY_MONTHLY: PAY_MONTHLY}

EXISTING_EMAIL_ADDRESS_ERROR_MESSAGE = u"Office Phone Number optional Please enter a valid phone number.Email address This email address is already in use. Please supply a different email address."

INVALID_EMAIL_FORMAT_ERROR_MESSAGE = u"Office Phone Number Please enter a valid phone number.Email address Enter a valid email address. Example:name@organization.com"

UNMATCHED_PASSWORD = {ORGANIZATION_NAME: u"NGO 001",
                      ORGANIZATION_SECTOR: u"PublicHealth",
                      ORGANIZATION_ADDRESS: u"Address Line One",
                      ORGANIZATION_CITY: u"Pune",
                      ORGANIZATION_STATE: u"Maharashtra",
                      ORGANIZATION_COUNTRY: u"IN",
                      ORGANIZATION_ZIPCODE: u"411028",
                      ORGANIZATION_OFFICE_PHONE: u"(01)23456789",
                      ORGANIZATION_WEBSITE: u"http://ngo001.com",
                      TITLE: u"Mr",
                      NAME: u"No Go",
                      EMAIL: u"valid@email.com",
                      ADMIN_MOBILE_NUMBER: "(91)678646792-67",
                      REGISTRATION_PASSWORD: u"password",
                      REGISTRATION_CONFIRM_PASSWORD: u"different_password",
                      PRO: PRO}

UNMATCHED_PASSWORD_ERROR_MESSAGE = u"Password The two password fields didn't match. Example: " \
                                   u"Minimum of 6 characters in lengthInvoice Period Monthly: $ 199 per month Renews automatically each month. " \
                                   u"Cancel at any time without penalty. 6 months:$ 149 per month Save 25% by paying 6 months in advance 12 months:$ 99 per month Save 50% " \
                                   u"by paying 12 months in advance This field is required.   Invoice Total:$"

WITHOUT_ENTERING_REQUIRED_FIELDS = {ORGANIZATION_NAME: u"",
                                    ORGANIZATION_SECTOR: u"PublicHealth",
                                    ORGANIZATION_ADDRESS: u"",
                                    ORGANIZATION_CITY: u"",
                                    ORGANIZATION_STATE: u"",
                                    ORGANIZATION_ZIPCODE: u"",
                                    ORGANIZATION_OFFICE_PHONE: u"",
                                    ORGANIZATION_WEBSITE: u"",
                                    TITLE: u"",
                                    NAME: u"",
                                    EMAIL: u"",
                                    ADMIN_MOBILE_NUMBER: "123455",
                                    REGISTRATION_PASSWORD: u"",
                                    REGISTRATION_CONFIRM_PASSWORD: u""}

WITHOUT_PREFERRED_PAYMENT = {ORGANIZATION_NAME: u"ÑGÓ 001",
                             ORGANIZATION_SECTOR: u"PublicHealth",
                             ORGANIZATION_ADDRESS: u"Address Line öne",
                             ORGANIZATION_CITY: u"Pünë",
                             ORGANIZATION_STATE: u"Máharashtra",
                             ORGANIZATION_COUNTRY: u"IN",
                             ORGANIZATION_ZIPCODE: u"411028",
                             ORGANIZATION_OFFICE_PHONE: u"0123456789",
                             ORGANIZATION_WEBSITE: u"http://ngo001.com",
                             TITLE: u"Mr",
                             NAME: u"Mickey Gö",
                             EMAIL: u"ngo",
                             ADMIN_MOBILE_NUMBER: "23-45-678-567",
                             REGISTRATION_PASSWORD: u"ngo001",
                             REGISTRATION_CONFIRM_PASSWORD: u"ngo001",
                             PAY_MONTHLY: PAY_MONTHLY,
                             PRO: PRO}

WITHOUT_ENTERING_REQUIRED_FIELDS_ERROR_MESSAGE = u"Organization Name This field is required.Address This field is required.City This field is required.Postal \/ Zip Code This field is required.Country.*Islands This field is required.Name This field is required.Email address This field is required.Password This field is required. Example: Minimum of 6 characters in lengthPassword \(again\) This field is required.Account Type Pro Collect unlimited data via 2 channels: Android \\(Smartphone, Tablet\\) \\& Web Pro SMS Collect unlimited data via 3 channels: SMS, Android \\(Smartphone, Tablet\\) \\& Web This field is required."

INVALID_WEBSITE_URL = {ORGANIZATION_NAME: u"NGO 001",
                       ORGANIZATION_SECTOR: u"PublicHealth",
                       ORGANIZATION_ADDRESS: u"Address Line One",
                       ORGANIZATION_CITY: u"Pune",
                       ORGANIZATION_STATE: u"Maharashtra",
                       ORGANIZATION_COUNTRY: u"IN",
                       ORGANIZATION_ZIPCODE: u"411028",
                       ORGANIZATION_OFFICE_PHONE: u"1234AB56789",
                       ORGANIZATION_WEBSITE: u"ngo001",
                       TITLE: u"Mr",
                       NAME: u"No Go",
                       EMAIL: u"ngo002@ngo.com",
                       ADMIN_MOBILE_NUMBER: "6786679267",
                       REGISTRATION_PASSWORD: u"ngo001",
                       REGISTRATION_CONFIRM_PASSWORD: u"ngo001",
                       PRO: PRO,
                       PAY_MONTHLY: PAY_MONTHLY}

INVALID_WEBSITE_URL_ERROR_MESSAGE = u"Office Phone Number optional Please enter a valid phone number.Website optional Enter a valid URL. Example: www.organization.com"

BEGIN_END_SPACED_PASSWORD = {ORGANIZATION_NAME: u"NGO 001",
                             ORGANIZATION_SECTOR: u"PublicHealth",
                             ORGANIZATION_ADDRESS: u"Address Line One",
                             ORGANIZATION_CITY: u"Pune",
                             ORGANIZATION_STATE: u"Maharashtra",
                             ORGANIZATION_COUNTRY: u"IN",
                             ORGANIZATION_ZIPCODE: u"411028",
                             ORGANIZATION_OFFICE_PHONE: u"(01)23456789",
                             ORGANIZATION_WEBSITE: u"http://ngo001.com",
                             TITLE: u"Mr",
                             NAME: u"No Go",
                             EMAIL: u"test@email.com",
                             ADMIN_MOBILE_NUMBER: "(91)678646792-67",
                             REGISTRATION_PASSWORD: u" password ",
                             REGISTRATION_CONFIRM_PASSWORD: u" password ",
                             PAY_MONTHLY: PAY_MONTHLY,
                             WIRE_TRANSFER: WIRE_TRANSFER,
                             PRO: PRO}

BEGIN_END_SPACED_PASSWORD_ERROR_MESSAGE = u"Password There should not be any space at the beginning and the end of the password. Example: Minimum of 6 characters in length"
INVALID_EMAIL_ERROR_MESSAGE = u"Email address Enter a valid email address. Example:name@organization.com"

WHITE_SPACE_IN_SOME_FIELDS = {ORGANIZATION_NAME: u" ",
                              ORGANIZATION_SECTOR: u"PublicHealth",
                              ORGANIZATION_ADDRESS: u"Address Line One",
                              ORGANIZATION_CITY: u" ",
                              ORGANIZATION_STATE: u"Maharashtra",
                              ORGANIZATION_COUNTRY: u"MG",
                              ORGANIZATION_ZIPCODE: u"411028",
                              ORGANIZATION_OFFICE_PHONE: u"26123456789",
                              ORGANIZATION_WEBSITE: u"http://www.localhost.com/",
                              TITLE: u"Mr",
                              NAME: u" ",
                              EMAIL: u"whitespace@mailinator.com",
                              ADMIN_MOBILE_NUMBER: "2618893",
                              REGISTRATION_PASSWORD: u"password!231",
                              REGISTRATION_CONFIRM_PASSWORD: u"password!231",
                              PAY_MONTHLY: PAY_MONTHLY,
                              WIRE_TRANSFER: WIRE_TRANSFER,
                              PRO: PRO}
WHITE_SPACES_ERROR_MESSAGE = u"Organization Name This field is required.City This field is required.Name This field is required."