cypressio-ncatestify-magento
v1.0.2
Published
Website testing
Downloads
5
Readme
Testing for magento
Important
This project is inspired by elgentos/magento2-cypress-testing-suite: https://github.com/elgentos/magento2-cypress-testing-suite
Installation
Clone repository.
$ git clone [email protected]: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.