Skip to content

BrokerBay/qa-cypress-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrokerBay Cypress Challenge

Overview

The goal of this challenge is to create a simple cypress test suite for a simple web app. The simple web app that you will be testing consists of:

  • A React frontend that takes a simple input and returns the appropriate result or error message
  • A Node.js backend using express that consists of a single route and executes the following function:

Function

Given an upper limit of n, find the median prime number(s) of the set of prime numbers less than n.

Example

a) If n = 10, the set of prime numbers less than 10 is [2,3,5,7], and so the medians are [3,5]

b) If n = 18, the set of prime numbers less than 18 is [2,3,5,7,11,13,17], and so the median is [7]

We will be assessing the challenge based on test practices, code style, working functionality, and usage of modern javascript (ES6).

Goal

  • Create cypress tests to cover the scenarios you believe are important.
  • If you believe there are areas of improvement, include these in the test - either as a comment or in the code as a failing test

Submitting

Update your code from the files submitted here, push to master on a repo of your own creation on Github. Make that repo private and follow the instructions for sharing that came with your email from our talent team.

Running the Example application

Install Dependencies

Run npm install from the top level folder of this project

Running The App

Run node server.js in the main folder in your command line to start the server and go to http://localhost:3000 in your browser to view the app.

Running The Backend Tests With Mocha

Run npm run test in your command line from the main folder to run the unit tests.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published