Exemplo n.º 1
0
    def test_missing_firstname(self):
        params = {
            'lastname': utils.random_string(5),
            'email': utils.random_email(),
            'password': utils.random_string(8),
            'phone': utils.random_usa_phone(),
            'zipcode': utils.random_zip()
        }
        register_page = register.RegisterPage(self.driver)
        register_page.register(params)

        assert register_page.is_first_name_error_displayed() is True
Exemplo n.º 2
0
    def test_missing_phone(self):
        #CAN REGISTER WITHOUT PHONE IF CLICKING THE PHONE INPUT, THEN INPUT ZIP AND CONTINUE REGISTERING
        params = {
            'firstname': utils.random_string(5),
            'lastname': utils.random_string(5),
            'email': utils.random_email(),
            'password': utils.random_string(8),
            'zipcode': utils.random_zip()
        }

        register_page = register.RegisterPage(self.driver)
        register_page.register(params)

        assert register_page.is_phone_error_displayed() is True
Exemplo n.º 3
0
    def test_register_correct(self):
        params = {
            'firstname': utils.random_string(5),
            'lastname': utils.random_string(5),
            'email': utils.random_email(),
            'password': utils.random_string(8),
            'phone': utils.random_usa_phone(),
            'zipcode': utils.random_zip()
        }

        register_page = register.RegisterPage(self.driver)
        register_page.register(params)

        confirm_reg_page = register.ConfirmRegisterPage(self.driver)
        assert confirm_reg_page.is_service_available() is False