Skip to content

knospe-/cypress-magento-plugin

 
 

Repository files navigation

Testing for magento

Magento_Logo

Important

This project is inspired by elgentos/magento2-cypress-testing-suite: https://github.com/elgentos/magento2-cypress-testing-suite

Installation

Clone repository.

$ git clone git@github.com:ncatestify/cypress-magento-plugin.git

Navigate into project folder and install dependencies.

$ cd <project-folder>
$ npm install

Setup

BaseUrl

Update BaseUrl in cypress.config.ts. The BaseUrl should not end with the "/".

baseUrl: 'https://testify.team'

or use

$ CYPRESS_baseUrl=[your baseUrl] npx cypress run/open

Selectors

Update selectors under cypress/fixtures/selectors.

Run

$ npx cypress run

Or if you want to use the GUI

$ npx cypress open or $ npm run cypress:open

TESTIFY Commands

https://github.com/ncatestify/cypress-base-plugin

TESTIFY Magento Cypress Commands

Validate product can be added to cart, wishlist and compare list

cy.ttaddCartWishlistCompare()

Validate product has image

cy.ttProductHasImage()

Validate product has price and title

cy.ttProductHasPriceAndTitle()

Can get multiple results in search

cy.ttSearchForMultipleResults()

Validate search returns no results for searchword without entries

cy.ttSearchForNoResults()

Set color filter (specify color by changing the selector in category.json)

cy.ttSetFilterColor()

Sort products by price

cy.ttSortByPrice()

Validate sorting by price is working

cy.ttValidatePrices()

Open Source project by TESTIFY.TEAM

TESTIFY.TEAM - WE FIND BUGS. AUTOMATED.

German YouTube Cypress.IO Live Coding Playlist

How to start with this Cypress.IO template on YouTube

About

Cypress commands for magento luma shops

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%