Giter Club home page Giter Club logo

debug-and-test-an-hr-saas's Introduction

Debug and Test an HR SaaS ๐Ÿ’ป

Billed is a company that produces SaaS solutions for human resources teams. It consists of two user paths: the HR administrator side and the employee side. The aim of the project was to improve the employee's career path and make it more reliable by fixing bugs and writing tests.

Developed Skills ๐Ÿ’ผ

  • Debugging a web application
  • Writing a manual E2E test plan
  • Writing integration tests with JavaScript
  • Writing unit tests with JavaScript

Description ๐Ÿ“„

The app had already been developed, the code as well as a description of several bugs were provided. The objective was to fix bugs identified in a bug report provided by Jest, order bills by date, and ensure the admin can navigate to the dashboard page after correct login.

Objectives ๐ŸŽฏ

  • BUG REPORT: Fix bugs identified in bug report provided by Jest.
  • BUG HUNT: Identify and solve more bugs.
  • UNIT & INTEGRATION TESTS: Increase coverage, cover all statements except back-end firebase calls.
  • E2E TEST: Write an E2E test plan for the employee flow.

Requirements ๐Ÿ“‹

  • Entirely cover Bills and NewBill files with tests
  • Use of Jest and Testing Library
  • Written E2E test plan
  • Generate Jest coverage report

Challenges & Achievements ๐Ÿ†

  • Writing a mock to replace Firestore functionality
  • Applying Jest spyOn functionality

How to Run the App Locally ๐Ÿ”ง

  1. Clone the project:
$ git clone https://github.com/AdrianGeorgeM/Debug-and-Test-an-HR-SaaS
  1. Navigate to the cloned repository:
$ cd Debug-and-Test-an-HR-SaaS
  1. Install npm packages (described in package.json):
$ npm install
  1. Install live-server to run a local server:
$ npm install -g live-server
  1. Launch the App:
$ live-server
  1. Open a browser and navigate to:
http://127.0.0.1:8080/

How to Perform Tests ๐Ÿ”

  • To run all tests with Jest:
$ npm run test
  • To run a single test:

    • Install jest-cli:
    $npm i -g jest-cli
    • Run your test file:
    $jest src/__tests__/your_test_file.js
  • To view test coverage, open a browser and navigate to:

http://127.0.0.1:8080/coverage/lcov-report/

debug-and-test-an-hr-saas's People

Contributors

adriangeorgem 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.