Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
56f0141
Update composer.json
oakesjosh Sep 2, 2025
1113a56
chore(tests): add e2e test and move php tests to codecaption directory
ravinderk Feb 3, 2026
b952a78
chore(e2e): add required package and config for e2e tests
ravinderk Feb 3, 2026
31186f3
chore(e2e): add readme.md for e2e tests
ravinderk Feb 3, 2026
38dc1c2
chore(e2e): readme.md cleanup
ravinderk Feb 3, 2026
b89ef5c
chore(codeception): rename tests dirctory
ravinderk Feb 3, 2026
b9d8aa8
chore(e2e): remove .nvmrc dependency from github workflow
ravinderk Feb 3, 2026
0a93c72
chore(e2e): add github secret to e2e github workflow
ravinderk Feb 3, 2026
2a3d168
Fix code style issues with ESLint
lint-action Feb 3, 2026
7ff021e
ci(tests): resolve failing e2e test issue
ravinderk Feb 9, 2026
26f885e
ci(tests): resolve e2e github action issues
ravinderk Feb 9, 2026
80517bc
ci(tests): add setup steps to readme.md
ravinderk Feb 9, 2026
842613e
ci(tests): replace set-output
ravinderk Feb 9, 2026
caf8da0
ci(tests): resolve composer cache issue in github action
ravinderk Feb 9, 2026
a42c903
ci(tests): reorganize github action steps
ravinderk Feb 9, 2026
be46fac
ci(tests): remove testing branch from github action
ravinderk Feb 9, 2026
40a686e
ci(tests): remove wp-env commands from package.json
ravinderk Feb 10, 2026
38733bd
Merge branch 'feat/fse-experiment' into setup-e2e-tests
ravinderk Feb 10, 2026
5f7d1b2
ci(tests): update bootstrap path in configuration
ravinderk Feb 10, 2026
9c5b6c7
ci(tests): remove unused wp-env configuration
ravinderk Feb 10, 2026
96448fe
ci(tests): Update plugin path for Kadence Blocks tests
ravinderk Feb 10, 2026
c1b4941
ci(tests): update test paths in configuration
ravinderk Feb 10, 2026
14d6e3b
ci(tests): rename directory
ravinderk Feb 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: E2E test

on:
push:
branches:
- develop
- main
pull_request:
workflow_call:

jobs:
e2e:
runs-on: ubuntu-latest

env:
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.COMPOSER_TOKEN }}"}}'

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Checkout slic
uses: actions/checkout@v4
with:
repository: stellarwp/slic
ref: main
path: slic
fetch-depth: 1

- name: Cache Composer dependencies
uses: actions/cache@v4
id: composer-cache
with:
path: ~/.cache/composer
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'

- name: Set up slic env vars
run: |
echo "SLIC_BIN=${GITHUB_WORKSPACE}/slic/slic" >> $GITHUB_ENV
echo "SLIC_WP_DIR=${GITHUB_WORKSPACE}/slic/_wordpress" >> $GITHUB_ENV
echo "SLIC_WORDPRESS_DOCKERFILE=Dockerfile.base" >> $GITHUB_ENV
- name: Set run context for slic
run: echo "SLIC=1" >> $GITHUB_ENV && echo "CI=1" >> $GITHUB_ENV

- name: Start ssh-agent
run: |
mkdir -p "${HOME}/.ssh"
ssh-agent -a /tmp/ssh_agent.sock
- name: Export SSH_AUTH_SOCK env var
run: echo "SSH_AUTH_SOCK=/tmp/ssh_agent.sock" >> $GITHUB_ENV

- name: Set up slic for CI
run: |
cd ${GITHUB_WORKSPACE}/..
${SLIC_BIN} here
${SLIC_BIN} interactive off
${SLIC_BIN} build-prompt off
${SLIC_BIN} build-subdir off
${SLIC_BIN} xdebug off
${SLIC_BIN} debug on
${SLIC_BIN} info
${SLIC_BIN} config
- name: Install & Build Plugin
run: |
cd "$GITHUB_WORKSPACE"
composer install --no-dev --no-scripts
composer run strauss-release
npm install --legacy-peer-deps
npm run build
- name: Start slic stack
run: |
${SLIC_BIN} use "$(basename "$GITHUB_WORKSPACE")"
${SLIC_BIN} up
${SLIC_BIN} playwright install chromium
${SLIC_BIN} site-cli
${SLIC_BIN} wp plugin activate "$(basename "$GITHUB_WORKSPACE")"
- name: Run E2E Test
run: ${SLIC_BIN} playwright test --config tests/e2e/playwright.config.js

- uses: actions/upload-artifact@v4
if: always()
with:
name: E2E Test Report
path: tests/e2e/test-results
retention-days: 7
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,12 @@ bin/wp-cli.phar
.pup-build
.pup-zip
/tests/codeception.env

# Remove this when fully transitioning to bun.
/bun.lock*

# E2E test
tests/e2e/test-results/

# Assets
includes/assets
/bun.lock*
10 changes: 5 additions & 5 deletions codeception.dist.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
actor: Tester
bootstrap: _bootstrap.php
paths:
tests: tests
log: tests/_output
output: tests/_output
data: tests/_data
helpers: tests/_support
tests: tests/php
log: tests/php/_output
output: tests/php/_output
data: tests/php/_data
helpers: tests/php/_support
wp_root: '%WP_ROOT_FOLDER%'
settings:
colors: true
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/",
"Tests\\Acceptance\\": "tests/acceptance/",
"Tests\\Support\\": "tests/_support/",
"Tests\\Support\\Classes\\": "tests/_support/Classes"
"Tests\\": "tests/php/",
"Tests\\Acceptance\\": "tests/php/acceptance/",
"Tests\\Support\\": "tests/php/_support/",
"Tests\\Support\\Classes\\": "tests/php/_support/Classes"
}
},
"scripts": {
Expand All @@ -95,7 +95,7 @@
"rm -f ./bin/strauss.phar"
],
"pup": [
"test -f ./bin/pup.phar || curl -o bin/pup.phar -L -C - https://github.com/stellarwp/pup/releases/download/1.2.2/pup.phar",
"test -f ./bin/pup.phar || curl -o bin/pup.phar -L -C - https://github.com/stellarwp/pup/releases/download/1.3.8/pup.phar",
"@php bin/pup.phar"
],
"wp-cli": [
Expand Down
Loading
Loading