Giter Site home page Giter Site logo

What's in this repo?

This repo contains the results of the technical task. The automated tests (both the frontend and backend) are added to the folder called automated tests. And the manual tests plus the bugs are added to the markdown file called test_cases.md

Automated Tests

Both of the automated tasks the frontend and backend are being automated in the same project using the same automation framework which is Cypress. I could automate them separately, but I just put them in the same project to make it easier for the reviewer to set up and run. Just set it up once and you will be able to run both. In the automated tests directory, here is the file structure:

  • Cypress folder which contains the test specs. Two test specs are inside the e2e folder.
  • Two configuration files; one for the API tests best_buy.config.js and another for the UI ones facebook.config.js
  • package.json file which contains all the global configurations and dependencies needed.

How to install and run

To install the project, all you need is to just open a terminal, navigate to the root of the project, and type npm install. This will install the test framework Cypress for you. And I kept the installation minimal to cut it short for you. No linting, no more add-ons to make it straightforward.

Once the dependencies are set up (you have the node_module directory generated) you need to choose which spec file you want to run:

  • If you want to run the facebook.cy.js spec, you just run its script by typing npm run facebook-test. This will open the Cypress runner for you. Click on E2E Testing box and it will load all the available specs. Just click on the facebook.cy.js spec and it will run interactively.
  • If you want to run the best_buy.cy.js spec, just run the script by typing npm run best-buy-test. NOTE: Make sure that the api-playground project is running on the localhost to make sure that the tests are passing.

Moataz Mahmoud's Projects

fe-playground icon fe-playground

The frontend playground serves as a test repository for Angular experiments

project-pages icon project-pages

Fork this repo for a quick start. If "Project Timeline" or "License" appeared on your nav bar, Look Below!

restaurants icon restaurants

This project lists the restaurants stored in the local database in a web page with Edit and Delete options. This project is built completely in native Python.

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.