def test_that_non_us_user_can_set_get_involved_date(self, base_url, selenium, vouched_user): home_page = Home(base_url, selenium) home_page.login(vouched_user['email']) settings = home_page.go_to_localized_settings_page("es") contributions = settings.you_and_mozilla.contributions selected_date = contributions.month + contributions.year contributions.select_random_month() contributions.select_random_year() contributions.click_update() profile_page = home_page.header.click_view_profile_menu_item() assert "Tu perfil" == profile_page.profile_message settings = home_page.go_to_localized_settings_page("es") contributions = settings.you_and_mozilla.contributions assert selected_date != contributions.month + contributions.year
def test_that_non_us_user_can_set_get_involved_date(self, base_url, selenium, vouched_user): home_page = Home(base_url, selenium) home_page.login(vouched_user['email']) settings = home_page.go_to_localized_settings_page("es") contributions = settings.you_and_mozilla.contributions selected_date = contributions.month + contributions.year contributions.select_random_month() contributions.select_random_year() contributions.click_update() profile_page = home_page.header.click_view_profile_menu_item() assert "Tu perfil" == profile_page.profile_message settings = home_page.go_to_localized_settings_page("es") contributions = settings.you_and_mozilla.contributions assert selected_date != contributions.month + contributions.year
def test_that_non_us_user_can_set_get_involved_date(self, base_url, selenium, vouched_user): home_page = Home(base_url, selenium) home_page.login(vouched_user['email'], vouched_user['password']) settings = home_page.go_to_localized_settings_page("es") contributions = settings.you_and_mozilla.contributions selected_date = contributions.month + contributions.year contributions.select_random_month() contributions.select_random_year() contributions.click_update() profile_page = home_page.header.click_view_profile_menu_item() Assert.equal(profile_page.profile_message, "Tu perfil") settings = home_page.go_to_localized_settings_page("es") contributions = settings.you_and_mozilla.contributions Assert.not_equal(selected_date, contributions.month + contributions.year, "The date is not changed")
def test_that_non_us_user_can_set_get_involved_date( self, base_url, selenium, vouched_user): home_page = Home(base_url, selenium) home_page.login(vouched_user['email'], vouched_user['password']) settings = home_page.go_to_localized_settings_page("es") contributions = settings.you_and_mozilla.contributions selected_date = contributions.month + contributions.year contributions.select_random_month() contributions.select_random_year() contributions.click_update() profile_page = home_page.header.click_view_profile_menu_item() Assert.equal(profile_page.profile_message, "Tu perfil") settings = home_page.go_to_localized_settings_page("es") contributions = settings.you_and_mozilla.contributions Assert.not_equal(selected_date, contributions.month + contributions.year, "The date is not changed")