Skip to content

Releases: bigbite/wp-cypress

v0.5.1

21 May 11:31
Compare
Choose a tag to compare

Changelog

Fixed

  • Fetch polyfil uses CDN to avoid issues with referencing package location.

v0.5.0

21 May 11:03
9c2e5c0
Compare
Choose a tag to compare

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

  1. The support package as moved locations. Instead of import '@bigbite/wp-cypress'; in cypress/support/index.js it should be import '@bigbite/wp-cypress/lib/cypress-support';

  2. 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.

  1. Composer must be available on the users cli

  2. cy.resetDB has been depreciated. It been changed to cy.resetWP.

  3. cy.seedDB has been depreciated. It been changed to cy.seed.

v0.4.5

19 May 16:14
44705da
Compare
Choose a tag to compare

Fixed

  • Seeder Date trait return local dateTime ( Fixes #29 )

v0.4.4

06 May 09:17
Compare
Choose a tag to compare

Fixed

  • Ensure the first theme, specified in the cypress configuration, is activated.

v0.4.3

27 Apr 12:05
Compare
Choose a tag to compare

Changed

  • Increase upload limit

Fixed

  • Correct permissions for wp-content

v0.4.2

23 Apr 15:19
16a7eb7
Compare
Choose a tag to compare
  • Add ability to run container on a custom port [#13]

v0.4.1

20 Apr 08:29
Compare
Choose a tag to compare

Changed

  • Make npm package public

v0.4.0

16 Apr 09:05
Compare
Choose a tag to compare

Changed

  • Refactor how Docker container is built, to improve performance by leveraging docker layer caching
  • Don't run installation on start as this happens before each test suite

v0.3.2

15 Apr 09:28
Compare
Choose a tag to compare

Changed

  • Don't visit root url in beforeEach because of Cypress issue with time out when using visit in beforeEach

v0.3.1

14 Apr 10:04
Compare
Choose a tag to compare

Changed

  • Updated Dependencies

Fixed

  • Correct path for unfetch polyfill