Code Monkey home page Code Monkey logo

booking-test's Introduction

Booking Test

Booking Test is a project developed as part of a job interview test. It is designed to be a simple booking scheduler application. This document provides an overview of the project, the installation process, and the steps to run it locally. It also includes details about the end-to-end tests that have been implemented.

Installation

To install the project dependencies, you need to execute the following command in your terminal:

pnpm install

Local Development

To start the project in the local development environment, run the following command:

pnpm dev

This command starts the development server and provides you with a local URL where you can access the application.

Local URL: http://localhost:5173

End-to-End Tests

End-to-end (E2E) tests have been implemented to ensure the application functions properly in various scenarios. These tests cover both happy and unhappy paths. The E2E tests are conducted using the Cypress testing framework.

To run the E2E tests, follow these steps:

  • Start the local development server by running the command pnpm dev.
  • Open Cypress by running the command pnpm test:open or pnpm test:run to run in the background.
  • Click on the desired test file from the Cypress interface to execute the tests.
  • Observe the test results in the Cypress runner window.

Happy Paths

The E2E tests for happy paths cover the following scenarios:

  • Should Create New Booking-Desktop
  • Should Create New Booking-Mobile
  • Should Edit Booking-Desktop
  • Should Edit Booking-Mobile
  • Should Highlight the booking that's being edited-Desktop
  • Should Highlight the booking that's being edited-Mobile
  • Should Delete Existing Booking-Desktop
  • Should Delete Existing Booking-Mobile

Unhappy Paths

The E2E tests for unhappy paths cover the following scenarios:

  • Create booking without fill input place - Desktopp
  • Create booking without fill input place - Mobilep
  • Create booking without fill start date - Desktopp
  • Create booking without fill start date - Mobilep
  • Create booking without fill end date - Desktopp
  • Create booking without fill end date - Mobilep
  • Integration between dates ( start date > end-date )-Desktop
  • Integration between dates ( start date > end-date )-Mobile
  • Integration between dates ( conflicted date - start date between existing dates )-Desktop
  • Integration between dates ( conflicted date - start date between existing dates )-Mobile
  • Integration between dates ( conflicted date - end date between existing dates )-Desktop
  • Integration between dates ( conflicted date - end date between existing dates )-Mobile
  • Integration between dates ( conflicted date - start and end dates “wrapping” another booking )-Desktop
  • Integration between dates ( conflicted date - start and end dates “wrapping” another booking )-Mobile

Deployed version

You can have the access to the published version at: https://booking-test-lucasmaiaesilva.vercel.app

Feel free to explore the application and test its functionality in a live environment.

Features Developed so far

  • Create Test E2E happy and unhappy paths
  • Write a documentation for the project
  • Close Calendar soon as the user click on a date
  • Scroll to form when the user clicks on an item to be edited
  • Handle errors gracefully - handle not only the happy path, but all edge cases for the implemented functionalities
  • Validate Duplicated entry
  • Host on vercel and add link to the documentation
  • Add toast for duplicate error data
  • Add toast for Delete Booking ( destructive )
  • Add toast for Edit Booking
  • Add toast for Create Booking
  • Pass toast to the top of the page
  • Fix background image on vercel
  • Validate Check-out < Check-in
  • Validate all data input
  • Configure Toast
  • Update a Booking
  • Host on Github
  • Delete a Booking
  • Add React-Hook_form
  • Set Label of Date Component to Start/End Dates
  • Read a Booking
  • Create a Booking
  • Global State ( Context API )
  • Add Hooks not in dedicated files
  • Responsive UI

Contributing

If you would like to contribute to the project, please follow the guidelines outlined in the CONTRIBUTING.md file.

License

This project is licensed under the MIT License.

booking-test's People

Watchers

Lucas Maia e Silva avatar  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.