1.0.2 • Published 5 months ago

cypressio-ncatestify-magento v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

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

1.0.2

5 months ago

1.0.1

5 months ago