https://github.com/beemi/cypress-automationpractise-example
https://github.com/beemi/cypress-automationpractise-example
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/beemi/cypress-automationpractise-example
- Owner: beemi
- Created: 2021-05-02T19:26:21.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:26:27.000Z (over 2 years ago)
- Last Synced: 2023-12-15T03:52:02.556Z (over 2 years ago)
- Language: JavaScript
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Cypress technical test
This repository contains technical testcases against http://automationpractice.com/index.php.
Table of contents
=================
* [Prerequisites](#prerequisites)
* [Installation Overview](#installation-overview)
* [Installation Steps](#installation-steps)
* [Test it!](#test-it)
* [Start the cypress Runner](#start-the-cypress-runner)
* [Contacts](#contacts)
## Prerequisites
### Installation Overview
Installing Node.js® and NPM is pretty straightforward using Homebrew. Homebrew handles downloading, unpacking and installing Node and NPM on your system. The whole process (after you have Homebrew installed) should only take you a few minutes.
### Installation Steps
* **Open the Terminal app** and type ```brew update```. This updates Homebrew with a list of the latest version of Node.
* Type ```brew install node.```
* **Sit back and wait.** Homebrew has to download some files and install them. But that’s it.
### Test it!
Make sure you have Node and NPM installed by running simple commands to see what version of each is installed:
* **Test Node.** To see if Node is installed, type ```node -v``` in Terminal. This should print the version number so you’ll see something like this v0.10.31.
* **Test NPM.** To see if NPM is installed, type ```npm -v``` in Terminal. This should print the version number so you’ll see something like this 1.4.27
* Check outdated packages in the project
```npm outdated```
* Update Cypress version
```npm update cypress```
* Install [Cypress](https://www.cypress.io/), type ```npm install cypress```
> Play with cypress playground
```npm test```
## How to run tests
### Using Cypress Debug mode
``npm test``
### Using terminal
Run all regression tests against Chrome browser
```npm run test:search:mac```
> If windows wants to be maximized update the viewPoints from cypress.json
> Screenshots will be saved under cypress/screenshots, override any cypress values in cypress.json
## Contacts
Owner: [beemiraja@gmail.com](beemiraja@gmail.com)