1.0.2 • Published 1 year ago
cypress-lmc-plugin v1.0.2
cypress-lmc-plugin
A plugin to extend cypress commands with useful functions to make daily work much more comfortable.
Installation
You can install the cypress plugin via npm:
npm i cypress-lmc-plugin
Extend "cypress/support/e2e"
Add the following line to your cypress/support/e2e.js to import the plugin functions:
import 'cypress-lmc-plugin'
Extend cypress.config.js
Make sure you have specified a baseUrl in the cypress configuration:
module.exports = defineConfig({
e2e: {
baseUrl: 'https://please.test-your-website.com/'
},
});
Usage
Once you have completed the installation, you can access the plugin functions and use them in your specs, e.g:
describe('Make sure cookie bot can be accepted', () => {
it('passes', () => {
cy.visit('/')
cy.acceptCookieBot()
});
});