Skip to content

damian-pagowski/online-store-client-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online Store Client

Online store responsive web client. Developed using React + Redux and Bootstrap.

Installation

Requires specific environment variables to run:

REACT_APP_API_URL=

Installing dependencies:

npm install

Usage

For production run:

npm start

Testing

There are end-to-end tests emplemented for this app.

Scenarios

2 automated scenarios exercising key application functionalities (user authentication, product search, cart, payments)

  1. User registration
  2. Complete checkout:
  • user login
  • adding product to cart
  • payment using credit card

Stack used for tests

  • Protractor
  • Jasmine
  • Chrome browser (headless)

Running Tests

Software requirements / Test specific setup.

  • Additional environment variable must be provided (for eample in .env file)
REACT_APP_E2E_URL=
  • Chrome browser must be installed
  • Run the update command: webdriver-manager update This will install the server and ChromeDriver
  • Run tests
npm run e2e

Tests report will be generated in XML Junit format so it can be published with CI tool (tested with Jenkins)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published