How rezbadr/demoblaze-cypress works
Project type and purpose
• This is not a traditional full-stack app but an end-to-end (E2E) test automation suite built with Cypress.
• Purpose: Automatically simulate a user’s journey on the Demoblaze e-commerce site (signup, login, browse, add to cart, place order, verify).
File structure
• cypress/
├── e2e/
│ └── Automatiser-un-parcours-utilisateur-complet-sur-Demoblaze.cy.js ← main E2E test script
├── fixtures/
│ └── example.json ← static test data (not heavily used here)
└── support/
└── commands.js ← custom commands (e.g., cy.generateUser())
• cypress.config.js ← Cypress configuration (baseUrl, timeouts)
• package.json / package-lock.json ← Node.js dependencies: cypress, @faker-js/faker
README for additional insights
• Test features: dynamic user generation, category navigation, cart operations, form submission.
• Commands: “npx cypress open” (UI) or “npx cypress run” (headless).
• Defines a custom command cy.generateUser() in support/commands.js.