This project is inspired by elgentos/magento2-cypress-testing-suite: https://github.com/elgentos/magento2-cypress-testing-suite
Initialize a new repo
$ npm init with ncatestify/cypress-io-magento-luma
Fill name and description.
Navigate into project folder and install dependencies.
$ cd <project-folder>
$ npm install
Update BaseUrl in cypress.config.ts.
baseUrl: 'https://m2.demo.webvisum.de'
If necessary update selectors under cypress/fixtures/selectors.
$ npx cypress run
Or if you want to use the GUI
$ npx cypress open
or $ npm run cypress:open
- Validates imprint is clickable
- Validates request to internal links returns status code 200
- Validates internal links are loading
- Validates no google servies are loaded
- Validates request to images returns status code 200
- Validates Page has only one h1 headline
- Validates request to invalid path returns status code 404
cy.ttEveryInternalLinkStatusOk()
cy.ttValidateAllImagesResponseStatusOk()
cy.ttEveryInternalLinkIsLoading()
cy.ttGetInternalLinks()
cy.ttValidateImprintClickable()
cy.ttValidateNoGoogleServices()
cy.ttRunTestifyBaseTests()
cy.ttAccessibility()
cy.ttValidatePageContent()
cy.ttOnlyOneH1()
cy.ttInvalidPath404()
cy.addFirstItemToBasket()
cy.sortByPrice()
cy.switchSortingDirection()
cy.searchForWordAndValidate(searchword: string)
cy.doLogin(email: string, password: string)
cy.setListLimitAndValidate(limit: string)
cy.paginationValidation()
cy.navigateToShoppingCart()
cy.removeItemFromShoppingCart(articleID: number)
cy.increaseShoppingCartItemQuantity(articleID: number)
cy.getShoppingCartPrice();
TESTIFY.TEAM - WE FIND BUGS. AUTOMATED.