Skip to content

Base repository for the work on new projects

Notifications You must be signed in to change notification settings

LennardTestify/cypressio-base

 
 

Repository files navigation

TESTIFY.TEAM template to start Cypress.IO website testing

TESTIFY-Logo-horizontal

TESTIFY.TEAM - WE FIND BUGS. AUTOMATED.

Errors are often in the details. Finding bugs manually can be like searching in a digital haystack: You waste time and resources. Automated website testing reduces both. At the same time, it increases the effectiveness and security of your application. TESTIFY is your agency for automated website testing.

Installation

Initialize a new repo

$ npm init with ncatestify/cypressio-base

Fill name and description.

The name is also the new directory.

The following steps must then be performed.

$ cd <new-project>
$ npm install
$ npx cypress open

Setup

Update baseUrl in cypress.config.ts

baseUrl: 'https://testify.team'

Running

$ npx cypress run

Or if you want to use the Gui

$ npx cypress open

Commands

This template includes pre-made commands you can use in your tests.

Critical

cy.ttValidateImprintClickable()

Validates website has an imprint and that it's clickable. An imprint is mandatory for websites in Germany, Austria and Switzerland.

cy.ttValidateNoGoogleFonts()

Validates no google fonts are being loaded. This is important as loading Google Fonts causes a violation against GDPR.

Monitoring

cy.ttEveryInternalLinkStatusOk()

Sends a request to all internal pages on page and validates they return a status code 200. A status code 200 means that the request has succeeded.

cy.ttEveryInternalLinkIsLoading()

Visits all internal pages on page and validates that they're loading. This confirms that there are no dead links on page.

Documentation in Cypress.IO YouTube tutorial

CYPRESS.IO YouTube tutorial playlist

Never Code Alone

We believe in open source and software craftsmanship. All our work, trainings and settings are public. We want to build better working conditions for developer and help out of legacy hells.

This is important for our mental health. AUTOMATE ALL THE THINGS is the first step to escape to a mindful live.

Follow us on

YouTube Twitter Instagram

https://testify.team/en

About

Base repository for the work on new projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%