/ Miscellaneous

Dark mode for Cypress test runner from user space

Dark mode for Cypress test runner from user space

cypress-dark

Dark mode for Cypress test runner from user space.

Install

Requires Node version 6 or above.

npm install --save-dev cypress-dark

Use

Add to your cypress/support/index.js line

require('cypress-dark')

By default dark theme will be loaded. If you want to switch to another theme, set its name in your cypress.json file.

{
  "theme": "halloween"
}

If the theme name is unknown (look at CSS files in src folder), or unspecified, default dark theme will be used.

Themes

For now all themes are shipped with this package and can use CSS variables. Available thems are:

GitHub