bigbite / wp-cypress

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

Make wordpress locale configurable #56

Closed rogervanwile closed 3 years ago

rogervanwile commented 3 years ago

Description

Currently Wordpress is always installed in the en_US version. With this change it is now possible to determine in which locale Wordpress should be installed. This makes it easy to test non-English plugins.

To use this feature, just add a locale to your cypress.json. If no one provided, en_US is used.

{
    "wp": {
        "locale": "de_DE"
    }
}

Change Log

Types of changes (if applicable):

Checklist (if applicable):

rogervanwile commented 3 years ago

@liamdefty Thanks for your input. I added a config validation rule. I don't know this schema, but I hope I have implemented the right way. I also added a regex pattern.