Skip to content

Caplia199/shop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

21 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Shop and Tests

๐Ÿ” Overview

Hello! In this repository, you'll find my portfolio. It contains a small online store written in JavaScript, as well as tests for it using Playwright. You can find the structure of each part of the application inside each repository. To run this project, you can use Docker.

Good luck!

โš™๏ธ Installation

  1. Clone this repository to your local machine.
git clone [email protected]:Caplia199/shop.git
  1. Navigate to the project's root directory using the terminal or command prompt.
  2. Install the project dependencies by running the following command:
npm install
  1. Install browsers by running the following command:
npx playwright install

โšก๏ธ Running the Tests

To execute the test cases against the Sauce Labs website, simply run the following command:

check tests on correct web-site :

npm run test:success

check tests on broken web-site :

npm run test:fail

๐Ÿ“Š Generate Report

To generate Allure report run:

npm run allure-report

๐Ÿณ Docker

  1. Clone this repository to your local machine.
git clone [email protected]:egorsoroka8/saucelabs.git
  1. Create image.
make build
  1. Run tests.
make run
  1. Generate report.
make report

In case you want to see logs, use :

make logs

By default report will be hosted on port 3030, but you can change it in Makefile (run command) and package.json (allure:report, allure:open) files.

Contributing

Feel free to contribute to this portfolio by opening pull requests or reporting issues. Your contributions and feedback are highly appreciated!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published