Skip to content

Commit c3134c8

Browse files
authored
Merge branch 'dev/qit-e2e-basic-checkout' into dev/qit-e2e-workflows
2 parents ebdcc7c + 7eb756c commit c3134c8

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Significance: patch
2+
Type: dev
3+
Comment: Add instructions to work with Docker and Woo core repo
4+
5+

docker/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,21 @@ services:
8686
I used port `9003` as an example.
8787
To apply the change, restart your containers using `npm run down && npm run up`
8888
89+
### Mapping WooCommerce development repo plugin folder
90+
91+
If you also work on [WooCommerce core](https://github.com/woocommerce/woocommerce) that you want to use in your Docker environment, you can map it by adding a volume mapping to `docker-compose.override.yml`.
92+
93+
For example: if your WooCommerce core repo path is `/path/to/your/repo/woocommerce`, you should append `plugins/woocommerce` to this path and configure it like this.
94+
95+
```
96+
services:
97+
wordpress:
98+
volumes:
99+
- /path/to/your/repo/woocommerce/plugins/woocommerce:/var/www/html/wp-content/plugins/woocommerce
100+
```
101+
102+
To apply the change, restart your containers using `npm run down && npm run up`. In case, it's not working properly yet, ensure that you follow the WooCommerce code README.md and build the plugin there.
103+
89104
### Adding local helper scripts/hacks
90105
91106
You can add local PHP scripts in the `docker/mu-plugins` directory since it's mounted as the `wp-content/mu-plugins` WordPress directory in your Docker container. These PHP scripts will be loaded automatically because they are treated as [WordPress must-use plugins](https://developer.wordpress.org/advanced-administration/plugins/mu-plugins/).

tests/qit/config/default.env

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# Copy this file to local.env and update with your values
33

44
# ===========================================
5-
# QIT CLI CREDENTIALS (for security, phpstan, malware tests)
5+
# QIT CLI CREDENTIALS (for security, phpstan, malware, custom e2e tests)
66
# ===========================================
7-
QIT_CI_USER=your_qit_username
8-
QIT_CI_SECRET=your_qit_application_password
7+
QIT_USER=your_qit_username
8+
QIT_PASSWORD=your_qit_application_password
99

1010
# ===========================================
1111
# E2E TEST CREDENTIALS (optional - for basic connectivity testing)

0 commit comments

Comments
 (0)