Do you like the bundled libraries in Cypress global object, like Cypress._
, Cypress.Promise
, Cypress.$
, etc? Are you missing Cypress.moment
that was removed? This short video teaches you how to load Ramda library (my fav) and make it available in every spec under the Cypress.R
property.
(TL;DR)
// cypress/support/index.js
import * as R from ‘ramda’
Cypress.R = R
// from any spec file use Cypress.R.* functions
Subscribe to Cypress Testing Tips & Tricks
Tips and tricks about testing all the web things using Cypress.io