def test_successful_sign_up(base_url, selenium): page = iOSTestFlightPage(selenium, base_url).open() page.type_email('*****@*****.**') page.accept_privacy_policy() page.accept_terms() page.click_sign_me_up() assert page.sign_up_successful
def test_signup_default_values(base_url, selenium): page = iOSTestFlightPage(selenium, base_url).open() assert '' == page.email assert not page.privacy_policy_accepted assert not page.terms_accepted assert page.is_privacy_policy_link_displayed assert page.is_terms_link_displayed
def test_successful_sign_up(base_url, selenium): page = iOSTestFlightPage(selenium, base_url).open() page.type_email('*****@*****.**') page.select_text_format() page.accept_privacy_policy() page.accept_terms() page.click_sign_me_up() assert page.sign_up_successful
def test_sign_up_failure(base_url, selenium): page = iOSTestFlightPage(selenium, base_url).open() page.expand_form() page.type_email("invalid@email") page.select_text_format() page.accept_privacy_policy() page.accept_terms() page.click_sign_me_up(expected_result="error") assert page.is_form_error_displayed
def test_sign_up_success(base_url, selenium): page = iOSTestFlightPage(selenium, base_url).open() page.expand_form() page.type_email("*****@*****.**") page.select_text_format() page.accept_privacy_policy() page.accept_terms() page.click_sign_me_up() assert page.sign_up_successful
def test_signup_default_values(base_url, selenium): page = iOSTestFlightPage(selenium, base_url).open() assert '' == page.email assert page.html_format_selected assert not page.text_format_selected assert not page.privacy_policy_accepted assert not page.terms_accepted assert page.is_privacy_policy_link_displayed assert page.is_terms_link_displayed
def test_signup_default_values(base_url, selenium): page = iOSTestFlightPage(selenium, base_url).open() page.expand_form() assert "" == page.email assert page.html_format_selected assert not page.text_format_selected assert not page.privacy_policy_accepted assert not page.terms_accepted assert page.is_privacy_policy_link_displayed assert page.is_terms_link_displayed
def test_sign_up_fails_when_missing_required_fields(base_url, selenium): page = iOSTestFlightPage(selenium, base_url).open() with pytest.raises(TimeoutException): page.click_sign_me_up()