Skip to content

Commit 5a9a746

Browse files
Merge branch 'development' into feat/issue-510
2 parents 0010c70 + 19a87cf commit 5a9a746

94 files changed

Lines changed: 2285 additions & 23980 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.distignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ phpstan-baseline.neon
3232
AGENTS.md
3333
.wp-env.json
3434
.claude
35-
35+
skills
36+
classes/Visualizer/Gutenberg/src

.github/workflows/build-dev-artifacts.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
- name: Create zip
3131
run: |
3232
npm ci
33+
npm run gutenberg:build
3334
CURRENT_VERSION=$(node -p -e "require('./package.json').version")
3435
COMMIT_HASH=$(git rev-parse --short HEAD)
3536
DEV_VERSION="${CURRENT_VERSION}-dev.${COMMIT_HASH}"

.github/workflows/deploy-wporg.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- name: Build
1616
run: |
1717
npm ci
18+
npm run gutenberg:build
1819
composer install --no-dev --prefer-dist --no-progress --no-suggest
1920
- name: WordPress Plugin Deploy
2021
uses: 10up/action-wordpress-plugin-deploy@master

.github/workflows/test-e2e.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- name: Install npm deps
2525
run: |
2626
npm ci
27+
npm run gutenberg:build
2728
npm install -g playwright-cli
2829
npx playwright install --with-deps chromium
2930
- name: Install composer deps

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ vendor
77
.DS_Store
88
artifacts
99
.phpunit.result.cache
10+
classes/Visualizer/Gutenberg/build

AGENTS.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,31 +33,9 @@ npm run build # Production build → build/block.js
3333
npm run dev # Watch mode for development
3434
```
3535

36-
### E2E Tests & Environment
36+
### E2E & PHPUnit Tests
3737

38-
Requires Docker to be running. Uses `docker-compose.ci.yml` (MariaDB + WordPress on port 8889).
39-
40-
```bash
41-
# 1. Install dependencies
42-
npm ci
43-
npx playwright install --with-deps chromium
44-
composer install --no-dev
45-
46-
# 2. Start the WordPress environment (boots Docker, installs WP, activates plugin)
47-
DOCKER_FILE=docker-compose.ci.yml bash bin/wp-init.sh
48-
49-
# 3. Run the full Playwright suite
50-
npm run test:e2e:playwright
51-
52-
# 4. Run a single spec file
53-
npx wp-scripts test-playwright --config tests/e2e/playwright.config.js tests/e2e/specs/gutenberg-editor.spec.js
54-
55-
# 5. Tear down
56-
DOCKER_FILE=docker-compose.ci.yml bash bin/wp-down.sh
57-
```
58-
59-
WordPress is installed at `http://localhost:8889` with credentials `admin` / `password`.
60-
The `TI_E2E_TESTING` constant is set to `true` in `wp-config.php` by the setup script, which enables test-only code paths in the plugin.
38+
> Skill files for running tests are in [`skills/`](skills/): use `skills/e2e.md` for E2E and `skills/unit.md` for PHPUnit.
6139
6240
---
6341

bin/cli-setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ wp --allow-root core install --url="http://localhost:8889" --admin_user="admin"
44
mkdir -p /var/www/html/wp-content/uploads
55
chmod -R 777 /var/www/html/wp-content/uploads/*
66
wp --allow-root plugin install classic-editor
7+
wp --allow-root plugin install elementor
78
wp --allow-root theme install twentytwentyone
89

910
# activate

0 commit comments

Comments
 (0)