Skip to content

Latest commit

 

History

History
69 lines (50 loc) · 980 Bytes

readme.md

File metadata and controls

69 lines (50 loc) · 980 Bytes

Cypress.IO plugin by NCA TESTIFY

Basis tests for every website testing project

Usage:

Add following line in your cypress/support/e2e.js|.ts file

import 'cypress-ncatestify-plugin'

in your cypress.config.js|.ts file the key baseUrl must be set

module.exports = defineConfig({
  e2e: {
    baseUrl: 'https://testify.team/de',
    setupNodeEvents(on, config) {
      // implement node event listeners here
    },
  },
})

Then in your Testfile

describe('Validate Testify Tests', () => {
  it('Runs Testify base tests', () => {
    cy.visit('/')
    cy.ttRunTestifyBaseTests()
  })
})

Run commands

npm run typecheck
npm run build
npx cypress open
export CYPRESS_BASE_URL=https://nevercodealone.de && npx cypress open

For contributing remove local js files

rm -rf **/*.js

Validate types with no generating

npm run typecheck

Build js files

npm run build