1.0.4 • Published 12 months ago

cypress-spellchecker v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Cypress-spellchecker

This is a Cypress custom command to check spelling.

This repository is used to check common spelling error on a webpage.

Installation

Install the module.

npm install cypress-spellchecker

Add the following line to cypress/support/commands.js.

require('Cypress-spellchecker/src/spellCheckCommand')

For Cypress 10 and above

Add the following lines to cypress.config.js.

const { defineConfig } = require('cypress')
const spellcheck = require('Cypress-spellchecker/src/spellCheck')

module.exports = defineConfig({
  // setupNodeEvents can be defined in either
  // the e2e or component configuration
  e2e: {
    setupNodeEvents(on, config) {
        spellcheck(on)
      }
    }
  })

Example of basic command

cy.spellCheck('https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings')

With Filename

cy.spellCheck('https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings','filename')
1.0.4

12 months ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago