def test_that_user_can_contribute_to_an_addon(self, mozwebqa, existing_user, paypal_user): """Test that checks the Contribute button for an add-on using PayPal.""" addon_page = Home(mozwebqa) addon_page.login(existing_user['email'], existing_user['password']) assert addon_page.is_the_current_page assert addon_page.header.is_user_logged_in addon_page = Details(mozwebqa, self.addon_name) contribution_snippet = addon_page.click_contribute_button() paypal_frame = contribution_snippet.click_make_contribution_button() assert addon_page.is_paypal_login_dialog_visible payment_popup = paypal_frame.login_to_paypal(paypal_user['email'], paypal_user['password']) assert payment_popup.is_user_logged_into_paypal payment_popup.click_pay() assert payment_popup.is_payment_successful payment_popup.close_paypal_popup() assert addon_page.is_the_current_page
def test_that_user_can_contribute_to_an_addon(self, mozwebqa): """Test that checks the Contribute button for an addon using PayPal.""" addon_page = Home(mozwebqa) addon_page.login('browserID') Assert.true(addon_page.is_the_current_page) Assert.true(addon_page.header.is_user_logged_in) addon_page = Details(mozwebqa, self.addon_name) contribution_snippet = addon_page.click_contribute_button() paypal_frame = contribution_snippet.click_make_contribution_button() Assert.true(addon_page.is_paypal_login_dialog_visible) payment_popup = paypal_frame.login_to_paypal(user="******") Assert.true(payment_popup.is_user_logged_into_paypal) payment_popup.click_pay() Assert.true(payment_popup.is_payment_successful) payment_popup.close_paypal_popup() Assert.true(addon_page.is_the_current_page)
def test_that_user_can_contribute_to_an_addon(self, mozwebqa): """Test that checks the Contribute button for an add-on using PayPal.""" addon_page = Home(mozwebqa) addon_page.login() Assert.true(addon_page.is_the_current_page) Assert.true(addon_page.header.is_user_logged_in) addon_page = Details(mozwebqa, self.addon_name) contribution_snippet = addon_page.click_contribute_button() paypal_frame = contribution_snippet.click_make_contribution_button() Assert.true(addon_page.is_paypal_login_dialog_visible) payment_popup = paypal_frame.login_to_paypal(user="******") Assert.true(payment_popup.is_user_logged_into_paypal) payment_popup.click_pay() Assert.true(payment_popup.is_payment_successful) payment_popup.close_paypal_popup() Assert.true(addon_page.is_the_current_page)