Giter VIP home page Giter VIP logo

store-form-app-testing's Introduction

Store Form App

Store product

As a merchandise manager, I want to store new products as a way of administrating my products.

Acceptance Criteria (AC):

  • There must be a create product form page.
  • The form must have the following fields: name, size, type (electronic, furniture, clothing) and a submit button.
  • All the fields are required.
    • If the user leaves empty fields and clicks the submit button, the form page must display required messages as the format: “The [field name] is required” aside of the proper field.
    • If the user blurs a field that is empty, then the form must display the required message for that field.
  • The form must send the data to a backend endpoint service.
    • The submit button should be disabbled while the form page is fetching the data. After fetching, the submit button does not have to be disabled.
    • In the success path, the form page must display the success message “Product stored” and clean the fields values.
    • In a server error, the form page must display the error message “Unexpected error, please try again”.
    • In the invalid request path, the form page must display the error message “The form is invalid, the fields [field1...fieldN] are required”.
    • In the not found service path, the form page must display the message “Connection error, please try later”.

Aplicación de formulario de tienda

Almacenar producto

Como gerente de mercadería, quiero almacenar nuevos productos como una forma de poder administrarlos.

** Criterios de aceptación (AC): **

  • Debe haber una página de formulario de creación de producto.
  • El formulario debe tener los siguientes campos: nombre, talla, tipo (electrónico, mobiliario, ropa) y un botón de envío.
  • Todos los campos son obligatorios.
    • Si el usuario deja campos vacíos y hace clic en el botón enviar, la página del formulario debe mostrar los mensajes obligatorios con el formato: _ “El [nombre del campo] es obligatorio” _ al lado del campo correspondiente.
    • Si el usuario desenfoca un campo que está vacío, entonces el formulario debe mostrar el mensaje requerido para ese campo.
  • El formulario debe enviar los datos a un servicio de punto final de backend.
    • El botón de envío debe estar desactivado mientras la página del formulario está recuperando los datos. Después de la recuperación, no es necesario deshabilitar el botón de envío.
    • En la ruta de éxito, la página del formulario debe mostrar el mensaje de éxito _ "Producto almacenado" _ y limpiar los valores de los campos.
    • En un error del servidor, la página del formulario debe mostrar el mensaje de error _ "Error inesperado, inténtelo de nuevo" _.
    • En la ruta de solicitud no válida, la página del formulario debe mostrar el mensaje de error _ “El formulario no es válido, los campos [campo1 ... campoN] son ​​obligatorios” _.
    • En la ruta del servicio no encontrado, la página del formulario debe mostrar el mensaje _ "Error de conexión, intente más tarde" _.

store-form-app-testing's People

Contributors

luchosr avatar

Stargazers

Roman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.