Ejemplo n.º 1
0
def test_registration(app):
    with allure.step("fill register form"):
        app.auth.fill_register_data(info['email_for_register'], info['password_for_register'])
        app.auth.send_escape()
    with allure.step("Confirm a user"):
        db = Connection()
        db.confirm_useremail_on_register(info['email_for_register'])
    with allure.step("fill login form"):
        app.auth.fill_login_data(info['email_for_register'], info['password_for_register'])
    with allure.step("Verify successfully login"):
        assert app.base.get_element_text(locator.NAME_USER) == info['username']
Ejemplo n.º 2
0
def test_registration(app):
    with allure.step("fill register form"):
        app.auth.fill_register_data(info['email_for_register'],
                                    info['password_for_register'])
        app.auth.send_escape()
    with allure.step("Confirm a user"):
        db = Connection()
        db.confirm_useremail_on_register(info['email_for_register'])
    with allure.step("fill login form"):
        app.auth.fill_login_data(info['email_for_register'],
                                 info['password_for_register'])
    with allure.step("Verify successfully login"):
        assert app.base.check_if_element_exists(locator.PROFILE)