bigbite / wp-cypress

WordPress end to end testing with Cypress.io.
MIT License
86 stars 19 forks source link

Added a property in wpContents which activates plugins after the theme is activated. #106

Closed PaulREnglish closed 2 years ago

PaulREnglish commented 2 years ago

Description

Fixes https://github.com/bigbite/wp-cypress/issues/95 - Adds support for a new property called pluginsActivatedAfterTheme in the wpContents object in cypress.json. Plugins applied to this property get activated after the theme is activated allowing WP-Cypress to test plugins that depend on the them.

Change Log

Types of changes (if applicable):

Checklist (if applicable):

To be added to the Schema upon release:

Add this to the wpContents section

Property Required
pluginsActivatedAfterTheme Optional

pluginsActivatedAfterTheme

noplanman commented 2 years ago

This new option will also have to be added to lib/schemas/config-validation.json.

Great solution! Nice and simple :+1:

PaulREnglish commented 2 years ago

Thanks guys, I've added the validation in the lib/schemas/config-validation.json. :D