Releases: bigbite/wp-cypress
Releases · bigbite/wp-cypress
v0.5.1
v0.5.0
Change Log
Fixed
- Don't include vendor folder in package plugin, instead install deps in
wp-cypress start
Added
- #15 Run tests on multiple wp versions
- #22 Add the ability to define additional configuration variables in
wp-config.php
- #23 Add globbing to plugins and theme config
- Visit any url in the container the param
?wp-cypress=debug
to see a debug page to check issues with configuration (Very basic for now).
Changed
- No longer need to add baseUrl to
cypress.json
config. It is generated in the cypress plugin.
Breaking changes
-
The support package as moved locations. Instead of
import '@bigbite/wp-cypress';
incypress/support/index.js
it should beimport '@bigbite/wp-cypress/lib/cypress-support';
-
The new changes rely on adding a plugin to the cypress set up which wasn't required previously. The
cypress/plugins/index.js
should look like:
// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
// You can change the location of this file or turn off loading
// the plugins file with the 'pluginsFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/plugins-guide
// ***********************************************************
// This function is called when a project is opened or re-opened (e.g. due to
// the project's config changing)
// module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
// }
const wpCypressPlugin = require('@bigbite/wp-cypress/lib/cypress-plugin');
module.exports = async (on, config) => {
return wpCypressPlugin(on, config);
}
Note: It is important to make this an async function and ensure that it returns the value of
wpCypressPlugin
.
-
Composer must be available on the users cli
-
cy.resetDB
has been depreciated. It been changed tocy.resetWP
. -
cy.seedDB
has been depreciated. It been changed tocy.seed
.