A suite of automation tests written with JavaScript and automated with Cypress JS framework, for the website https://www.saucedemo.com/, in order to practice my automation testing skills with Cypress.
git clone https://github.com/MirceaMacarie/Saucedemo_Cypress_Test.gitThis skill provides a complete automation test suite built with Cypress and JavaScript for testing the saucedemo.com demo shopping website. It covers end-to-end user flows including login validation, product selection, cart management, and checkout processes. The suite includes organized test cases that verify both functional behavior and UI details like buttons, titles, and text elements. It runs on Google Chrome and demonstrates how to structure and execute automated tests using Cypress, making it ideal for developers learning e2e testing practices or validating shopping cart workflows.
Install Cypress with npm i cypress, then run npx cypress open to configure the framework and select Chrome as your browser. The tests are located in cypress/e2e/Sauce_Test_File.cy.js and can be executed through the Cypress interface. The test suite includes organized cases with delays between test execution for easier observation.
Learning Cypress framework fundamentals with a real e-commerce application
Automating login flow validation and authentication testing
Testing shopping cart functionality and product selection
Validating UI elements and static content across checkout pages
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/MirceaMacarie/Saucedemo_Cypress_TestCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Create a Cypress test suite for the SauceDemo website (https://www.saucedemo.com/) to automate the following scenarios: [SCENARIOS]. Ensure the tests are written in JavaScript and include assertions for [SPECIFIC ELEMENTS] on the page. Provide the complete code with clear comments.
# Cypress Test Suite for SauceDemo Website
```javascript
describe('SauceDemo Website Automation', () => {
beforeEach(() => {
cy.visit('https://www.saucedemo.com/')
cy.get('#user-name').type('standard_user')
cy.get('#password').type('secret_sauce')
cy.get('#login-button').click()
})
it('should add items to the cart and proceed to checkout', () => {
// Add items to the cart
cy.get('#add-to-cart-sauce-labs-backpack').click()
cy.get('#add-to-cart-sauce-labs-bike-light').click()
// Verify items are in the cart
cy.get('.shopping_cart_link').click()
cy.get('.cart_item').should('have.length', 2)
// Proceed to checkout
cy.get('#checkout').click()
cy.get('#first-name').type('John')
cy.get('#last-name').type('Doe')
cy.get('#postal-code').type('12345')
cy.get('#continue').click()
cy.get('.summary_info').should('contain', 'SauceCard #31337')
})
it('should verify the inventory page elements', () => {
cy.get('.inventory_list').should('be.visible')
cy.get('.inventory_item').should('have.length', 6)
cy.get('.product_sort_container').should('be.visible')
})
})
```Automate your browser workflows effortlessly
Get more done every day with Microsoft Teams – powered by AI
Automate security compliance and monitor real-time security posture seamlessly.
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan