Introduction
Allows interaction with a MariaDB from Cypress commands
Install
npm install --save-dev cypress-maria-db
Configure
Plugin file
The plug-in can be initialised in your cypress/plugins/index.js
file as below.
const mariadb = ; module { tasks = mariadb; ;};
Commands file
The extension provides multiple a command to make aql query. You can import the ones you need. Example support/index.js
file.
;mariadb;
cypress.json
Your cypress.json specify the DB redentials under "env" key in the following format
"env":
Usage
cy.sqlQuery(query, values)
Examples
cy; cy ;
Multiple queries can be processed in a following way
cy