Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 58 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,59 @@
# nursa-qa-automation-cypress-2021
# Nursa_webtest & API test - Cypress 2022

<a href="#description">Description </a>
<a href="#functionalities">Functionalities </a>
<a href="#runtests">Run Tests </a>
<a href="#projectstatus">Projects Status </a>
<a href="#author">Author </a>

# Tests
The tests were written using JavaScript language

# Nursa_webtest
# Project description - Step by step:
- Visit the website https://demo.sylius.com/en_US/login
- New user registration
- Adding product to cart
- Inclusion of Delivery Address
- Inclusion of payment method
- Purchase completed successfully

# Functionalities:
- fixtures > perfil
- support > page_objects > address.page
- support > commands
- Faker (emailfaker)

___________________________________________________________________________

# API_test
# Project description - Step by step:
- Visit the website https://demo.sylius.com/api/v2/shop/addresses
- Generate token
- Create an address - Method: POST
- Retrieves the collection of addresses - Method: GET
- Edit a previously registered address - Method: PUT
- Delete a previously registered address - Method: DELETE
* All tests passed

# Functionalities:
- fixtures > perfil
- support > commands

# Run Tests
Run one of the commands below to run the tests. Examples:
- To open cypress, execute npx cypress open
- To run the tests - after opening Cypress, just click on the test you want to run
- To run the tests on the terminal, execute npx cypress run
- To generate the report, execute npm run cy:report or visit https://dashboard.cypress.io/projects/tdz1x7/runs/2/overview

# Project status:
Done
# Author:
Gabriela Mattesco






## setup
0. nvm use v15.14.0
1. npm install
2. npm run cypress:open
5 changes: 4 additions & 1 deletion cypress.json
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
{}
{
"baseUrl": "https://demo.sylius.com/",
"projectId": "tdz1x7"
}
5 changes: 5 additions & 0 deletions cypress/fixtures/perfil.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"Username": "[email protected]",
"Password": "sylius"
}

143 changes: 0 additions & 143 deletions cypress/integration/1-getting-started/todo.spec.js

This file was deleted.

Loading