# gnmmoraes/desafio-api-qa architecture

> Architecture diagram of the GitHub repository gnmmoraes/desafio-api-qa, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gnmmoraes/desafio-api-qa
- Repository: https://github.com/gnmmoraes/desafio-api-qa

## Overview

This repository is a Cypress API QA test suite, not an application server. The principal workflow is a QA engineer running Cypress, which executes the cart, login, product, and user scenarios. Cypress configuration sets the Serverest API base URL. The test sources and support files were not excerpted, so their internal calls and API interactions cannot be verified here.

Main entry points: [`cypress.config.js`](https://github.com/gnmmoraes/desafio-api-qa/blob/main/cypress.config.js) (E2E configuration), [`cypress/e2e/cart.cy.js`](https://github.com/gnmmoraes/desafio-api-qa/blob/main/cypress/e2e/cart.cy.js) (Cart tests), [`cypress/e2e/login.cy.js`](https://github.com/gnmmoraes/desafio-api-qa/blob/main/cypress/e2e/login.cy.js) (Login tests), [`cypress/e2e/product.cy.js`](https://github.com/gnmmoraes/desafio-api-qa/blob/main/cypress/e2e/product.cy.js) (Product tests)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_execution["Test execution"]
  node_cypress["Cypress runner"]
  node_config["E2E configuration<br/>[cypress.config.js]"]
end

subgraph group_scenarios["QA scenarios"]
  node_cart["Cart tests<br/>[cart.cy.js]"]
  node_login["Login tests<br/>[login.cy.js]"]
  node_product["Product tests<br/>[product.cy.js]"]
  node_users["User tests<br/>[users.cy.js]"]
end

subgraph group_support["Cypress support"]
  node_commands["Custom commands<br/>[commands.js]"]
  node_e2e["E2E support<br/>[e2e.js]"]
end

node_qa(("QA engineer"))
node_api["Serverest API"]

node_qa -->|"runs tests"| node_cypress
node_cypress -->|"executes"| node_cart
node_cypress -->|"executes"| node_login
node_cypress -->|"executes"| node_product
node_cypress -->|"executes"| node_users
node_config -->|"sets base URL"| node_api

click node_config "https://github.com/gnmmoraes/desafio-api-qa/blob/main/cypress.config.js"
click node_cart "https://github.com/gnmmoraes/desafio-api-qa/blob/main/cypress/e2e/cart.cy.js"
click node_login "https://github.com/gnmmoraes/desafio-api-qa/blob/main/cypress/e2e/login.cy.js"
click node_product "https://github.com/gnmmoraes/desafio-api-qa/blob/main/cypress/e2e/product.cy.js"
click node_users "https://github.com/gnmmoraes/desafio-api-qa/blob/main/cypress/e2e/users.cy.js"
click node_commands "https://github.com/gnmmoraes/desafio-api-qa/blob/main/cypress/support/commands.js"
click node_e2e "https://github.com/gnmmoraes/desafio-api-qa/blob/main/cypress/support/e2e.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cypress,node_config toneBlue
class node_cart,node_login,node_product,node_users toneAmber
class node_commands,node_e2e,node_api toneMint
class node_qa toneIndigo
```

## Components

### Test execution

- **Cypress runner**
- [E2E configuration](https://github.com/gnmmoraes/desafio-api-qa/blob/main/cypress.config.js): `cypress.config.js`

### QA scenarios

- [Cart tests](https://github.com/gnmmoraes/desafio-api-qa/blob/main/cypress/e2e/cart.cy.js): `cypress/e2e/cart.cy.js`
- [Login tests](https://github.com/gnmmoraes/desafio-api-qa/blob/main/cypress/e2e/login.cy.js): `cypress/e2e/login.cy.js`
- [Product tests](https://github.com/gnmmoraes/desafio-api-qa/blob/main/cypress/e2e/product.cy.js): `cypress/e2e/product.cy.js`
- [User tests](https://github.com/gnmmoraes/desafio-api-qa/blob/main/cypress/e2e/users.cy.js): `cypress/e2e/users.cy.js`

### Cypress support

- [Custom commands](https://github.com/gnmmoraes/desafio-api-qa/blob/main/cypress/support/commands.js): `cypress/support/commands.js`
- [E2E support](https://github.com/gnmmoraes/desafio-api-qa/blob/main/cypress/support/e2e.js): `cypress/support/e2e.js`

### Other components

- **QA engineer**
- **Serverest API**

## Connections

- QA engineer → Cypress runner: runs tests (evidence: `README.md`)
- Cypress runner → Cart tests: executes (evidence: `README.md`)
- Cypress runner → Login tests: executes (evidence: `README.md`)
- Cypress runner → Product tests: executes (evidence: `README.md`)
- Cypress runner → User tests: executes (evidence: `README.md`)
- E2E configuration → Serverest API: sets base URL (evidence: `cypress.config.js`)
