@bahmutov/cypress-examples
Cypress.io command examples
Last updated a month ago by bahmutov .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @bahmutov/cypress-examples 
SYNC missed versions from official npm registry.

@bahmutov/cypress-examples

ci status prettier status deployed status renovate-app badge cypress version

Static site with Cypress examples tested right from the Markdown sources

Live site glebbahmutov.com/cypress-examples/

Benefits

  • single source of truth for tests and HTML pages. No more copy / pasting
  • great development experience with live reload and optimized static build thanks to Vuepress and Prettier formatting
  • JavaScript specs are extracted and published as NPM package @bahmutov/cypress-examples after testing against the deployed site and then published to NPM under @bahmutov/cypress-examples
  • excellent text and code comment search thanks to Algolia

Notes

  • use "function" syntax in <script> tags that need to be live, otherwise Markdown escapes => arrows?!

Try published specs

You can run the exported spec files.

  • Start a new project or use an existing project, and add this module as a dev dependency
$ npm i -D @bahmutov/cypress-examples
  • Open or run Cypress and point at the folder inside node_modules
$ npx cypress open --project node_modules/\@bahmutov/cypress-examples/

Spec running

Development

There is a difference between running Markdown files and testing fully exported specs against the built site. To do this all in a single command locally run

npm run dev:export

This command builds the static site, exports the Markdown specs into JavaScript specs, starts local server, and when it responds, starts Cypress.

Current Tags

  • 1.12.2                                ...           latest (a month ago)

21 Versions

  • 1.12.2                                ...           a month ago
  • 1.12.1                                ...           a month ago
  • 1.12.0                                ...           2 months ago
  • 1.11.0                                ...           2 months ago
  • 1.10.1                                ...           2 months ago
  • 1.10.0                                ...           2 months ago
  • 1.9.0                                ...           2 months ago
  • 1.8.0                                ...           2 months ago
  • 1.7.1                                ...           2 months ago
  • 1.7.0                                ...           2 months ago
  • 1.6.1                                ...           4 months ago
  • 1.6.0                                ...           9 months ago
  • 1.5.0                                ...           9 months ago
  • 1.4.0                                ...           9 months ago
  • 1.3.1                                ...           9 months ago
  • 1.3.0                                ...           9 months ago
  • 1.2.0                                ...           9 months ago
  • 1.1.2                                ...           9 months ago
  • 1.1.1                                ...           9 months ago
  • 1.1.0                                ...           9 months ago
  • 1.0.0                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 21
This Month 21
Last Day 21
Last Week 0
Last Month 64
Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |